joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac560
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp eax, 0x20
push esi
jg 0x4ac613
mov esi, 1
mov ecx, eax
shl esi, cl
cmp edx, esi
jae 0x4ac613
mov ecx, 0x20
sub ecx, eax
xor esi, esi
shl edx, cl
mov ecx, esi
shl ecx, 0x18
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 4]
bswap eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov dword [edi + esi*4], ecx
add esi, 1
cmp esi, 0x100
jl 0x4ac587
mov dword [edi + 0x400], 1
xor eax, eax
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x4c7e33
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 0x4c7e79
call fcn.004ca1a2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c7e79
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4c7ebc
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 0x4c7ea5
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 0x4c7ea5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4c7eb9
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 0x4d1b73
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4d1bac
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00416f40
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00449d70
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4d3780
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 0x4d37c3
call fcn.004ca1a2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4d37c3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4d37de
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004d3337
test ebx, ebx
mov esi, eax
je 0x4d37dc
test edi, edi
je 0x4d37dc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4d478e
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4d4797
xor eax, eax
jmp 0x4d4800
cmp dword [esp + 8], 0
jne 0x4d47a3
call fcn.004c788e
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004ec4c8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d47de
push dword [esi + 0x10]
call fcn.004ec20d
test eax, eax
pop ecx
jne 0x4d47de
mov esi, dword [esi + 0xc]
call fcn.004eb5e2
push esi
push dword [eax]
push 1
call fcn.004d45f3
push dword [esi + 0x10]
call fcn.004ec23c
test eax, eax
pop ecx
je 0x4d47fd
push dword [esi + 0x10]
call fcn.004ec161
push eax
call fcn.00404000
pop ecx
pop ecx
jmp 0x4d47cc
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4d4809
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4d4813
call fcn.004c788e
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004e7cb2
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4d4840
mov esi, dword [esi + 0xc]
call fcn.004eb5e2
push esi
push dword [eax]
push 1
call fcn.004d45f3
pop esi
ret 8

Function at 0x4d7964
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d7992
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d79b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d78ce
jmp 0x4d79b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d79b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004d78ce
test edi, edi
mov eax, edi
jne 0x4d799a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x61d7f0]
test ecx, ecx
je 0x4d7a73
jmp 0x4d7963
ret 8

Function at 0x4e3dc3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x617560]
jne 0x4e3dcd
repz ret
jmp fcn.004ed55f
Function at 0x4fa72f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004ee998
xor ebx, ebx
cmp dword [0x61e314], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4fa804
push 0x5cdf70
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4fa76f
xor eax, eax
jmp 0x4fa8c8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5cdf64
push edi
call esi
cmp eax, ebx
je 0x4fa768
push eax
call fcn.004ee935
mov dword [esp], 0x5cdf54
push edi
mov dword [0x61e314], eax
call esi
push eax
call fcn.004ee935
mov dword [esp], 0x5cdf40
push edi
mov dword [0x61e318], eax
call esi
push eax
call fcn.004ee935
mov dword [0x61e31c], eax
lea eax, [ebp - 8]
push eax
call fcn.004e8976
test eax, eax
pop ecx
pop ecx
je 0x4fa7d2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e5695
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4fa804
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004ee935
cmp eax, ebx
pop ecx
mov dword [0x61e324], eax
je 0x4fa804
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ee935
pop ecx
mov dword [0x61e320], eax
mov eax, dword [0x61e320]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4fa87d
cmp dword [0x61e324], esi
je 0x4fa87d
push eax
call fcn.004ee9a1
pop ecx
call eax
cmp eax, ebx
je 0x4fa84a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x61e324]
call fcn.004ee9a1
pop ecx
call eax
test eax, eax
je 0x4fa84a
test byte [ebp - 0x18], 1
jne 0x4fa87d
lea eax, [ebp - 0xc]
push eax
call fcn.004e89ad
test eax, eax
pop ecx
je 0x4fa865
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e5695
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4fa874
or dword [ebp + 0x10], 0x200000
jmp 0x4fa8ae
or dword [ebp + 0x10], 0x40000
jmp 0x4fa8ae
mov eax, dword [0x61e318]
cmp eax, esi
je 0x4fa8ae
push eax
call fcn.004ee9a1
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4fa8ae
mov eax, dword [0x61e31c]
cmp eax, esi
je 0x4fa8ae
push dword [ebp - 4]
push eax
call fcn.004ee9a1
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x61e314]
call fcn.004ee9a1
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5597a2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x617560]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00559737
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.004eaae0
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 0x5597f1
cmp dword [ebp - 0x1c], 5
jb 0x559809
jmp 0x559805
cmp dword [ebp - 0x10], 1
jne 0x559809
cmp dword [ebp - 0x1c], 4
ja 0x559805
jne 0x559809
cmp dword [ebp - 0x18], 0
jbe 0x559809
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5d4610
call fcn.00559628
test eax, eax
jge 0x55982a
mov byte [0x6201ac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e3dc3
add ebp, 0x78
leave
ret

Function at 0x559a00
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esi + 0x15c]
push edi
push 0x5d4e78
push eax
call fcn.004e7b85
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 8], edi
je 0x559ae0
mov ecx, dword [esi + 0x18f8]
mov eax, dword [ecx + 0x18]
imul eax, dword [esi + 0xc]
imul eax, dword [esi + 0x10]
lea eax, [eax + eax*2]
cdq
sub eax, edx
sar eax, 1
cdq
push 0
push edx
push eax
push edi
call fcn.005b6879
mov edx, dword [esi + 0x18f8]
xor ecx, ecx
add esp, 0x10
cmp dword [edx + 0x2c], ecx
mov dword [esp + 4], ecx
jle 0x559ad7
mov eax, dword [esi + 0x10]
push ebx
push ebp
mov ebp, 0x60
xor ebx, ebx
xor edi, edi
test ecx, ecx
setne bl
mov edx, eax
mov ecx, ebx
sar edx, cl
test edx, edx
jle 0x559ab8
jmp 0x559a80
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x18f8]
mov edx, dword [esi + 0xc]
push ecx
mov ecx, ebx
sar edx, cl
mov ecx, dword [eax + ebp - 0x30]
imul ecx, edi
add ecx, dword [eax + ebp]
push edx
push 1
push ecx
call fcn.004e7cb2
mov eax, dword [esi + 0x10]
mov edx, eax
mov ecx, ebx
sar edx, cl
add edi, 1
add esp, 0x10
cmp edi, edx
jl 0x559a80
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x18f8]
add ecx, 1
add ebp, 4
cmp ecx, dword [edx + 0x2c]
mov dword [esp + 0xc], ecx
jl 0x559a68
mov edi, dword [esp + 0x10]
pop ebp
pop ebx
push edi
call fcn.004e7db2
add esp, 4
pop edi
add esp, 8
ret
Function at 0x560060
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0x5d60cc
push eax
call fcn.004e7b85
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x56007b
pop ebx
ret
push esi
push edi
push 2
push 0
push 0
push ebx
call fcn.005b6879
xor ecx, ecx
test eax, eax
setl cl
push ebx
mov esi, ecx
call fcn.005b6be6
push 0
push 0
push 0
push ebx
mov edi, eax
call fcn.005b6879
xor edx, edx
add esp, 0x24
test eax, eax
setl dl
xor eax, eax
test edi, edi
setle al
or edx, eax
or esi, edx
jne 0x56011c
push ebp
lea ebp, [edi + 2]
lea ecx, [ebp + 0x17]
push ecx
call fcn.004e4249
lea esi, [eax + 0x17]
push ebx
mov edx, esi
and edx, 0xf
sub esi, edx
push edi
push 1
push esi
mov dword [esi - 4], eax
mov dword [esi - 8], ebp
call fcn.004ec4c8
xor ecx, ecx
add esp, 0x14
cmp eax, edi
setne cl
cmp byte [esi + edi - 1], 0xa
mov ebp, ecx
je 0x5600fe
mov byte [esi + edi], 0xa
add edi, 1
push ebx
mov byte [esi + edi], 0
call fcn.004e7db2
add esp, 4
test ebp, ebp
pop ebp
je 0x560122
mov edx, dword [esi - 4]
push edx
call fcn.004e400f
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x561d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 8]
mov dword [esi], eax
mov edx, dword [ecx]
mov dword [esi + 4], edx
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0x78]
mov dword [esi + 8], eax
xor ecx, ecx
mov edx, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], edx
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x16c]
neg eax
sbb eax, eax
and eax, 2
mov dword [esi + 0x20], eax
cmp dword [edi + 0x1bc], 2
mov eax, 0x1a
je 0x561de9
mov eax, dword [edi + 0x1c0]
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], 0x1a
mov eax, dword [edi + 0x174]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
cmp dword [edi + 0x168], ecx
setne al
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x84]
mov dword [esi + 0x40], eax
sub eax, ecx
je 0x561f34
sub eax, edx
je 0x561efd
sub eax, edx
jne 0x561f4b
push ebx
push ebp
lea ebp, [edi + 0x8c]
push 4
push ebp
call fcn.00560a50
lea ebx, [edi + 0x9c]
push 4
push ebx
call fcn.00560a50
lea eax, [edi + 0xac]
push 4
push eax
mov dword [esp + 0x2c], eax
call fcn.00560a50
lea eax, [edi + 0xbc]
push 4
push eax
mov dword [esp + 0x38], eax
call fcn.00560a50
lea eax, [edi + 0xcc]
push 8
push eax
mov dword [esp + 0x48], eax
call fcn.00560a50
add edi, 0x10c
push 8
push edi
call fcn.00560a50
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
add esp, 0x30
lea eax, [esi + 0x44]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax], ebp
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ecx
pop ebp
mov dword [esi + 0x50], edx
mov dword [esi + 0x58], edi
xor ecx, ecx
mov esi, eax
pop ebx
nop
xor edx, edx
xor eax, eax
cmp ecx, 4
setge dl
sub edx, 1
and edx, 0xffffffd0
add edx, 0x40
test edx, edx
jle 0x561eef
mov edi, dword [esi]
cmp byte [eax + edi], 0
jne 0x561ee8
mov edi, dword [ecx*4 + 0x5d6650]
mov dword [esi], edi
add eax, 1
cmp eax, edx
jl 0x561ed7
add ecx, 1
add esi, 4
cmp ecx, 6
jl 0x561ec0
pop edi
pop esi
ret
mov edx, dword [0x5d6650]
mov dword [esi + 0x44], edx
mov eax, dword [0x5d6654]
mov dword [esi + 0x48], eax
mov ecx, dword [0x5d6658]
mov dword [esi + 0x4c], ecx
mov edx, dword [0x5d665c]
mov dword [esi + 0x50], edx
mov eax, dword [0x5d6660]
mov dword [esi + 0x54], eax
mov ecx, dword [0x5d6664]
pop edi
mov dword [esi + 0x58], ecx
pop esi
ret
mov eax, 0x5d6610
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
pop edi
pop esi
ret
Function at 0x56b0d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x18]
mov ecx, dword [edi + 0x10]
and ecx, 0xff
cmp ecx, 1
mov dword [esp + 8], ecx
je 0x56b10b
cmp ecx, 4
je 0x56b10b
mov eax, dword [esp + 0x10]
push str.Arg_invalid_CSP_n
push 0
push eax
call fcn.0055fe10
add esp, 0xc
or eax, 0xffffffff
pop edi
add esp, 8
ret
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [edi + 4]
mov dword [eax + 8], edx
mov edx, dword [edi + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [eax + 0x10], edx
mov edx, dword [edi + 0xc]
push esi
mov dword [eax + 0x14], edx
xor esi, esi
add eax, 0x60
mov dword [esp + 0x10], eax
jmp 0x56b144
mov ecx, dword [esp + 0x14]
cmp ecx, 4
jne 0x56b154
test esi, esi
je 0x56b154
mov eax, esi
xor eax, 3
jmp 0x56b156
mov eax, esi
mov ecx, dword [edi + eax*4 + 0x28]
mov ebx, dword [edi + eax*4 + 0x18]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], ecx
xor ecx, ecx
test esi, esi
setne cl
sar edx, cl
sar eax, cl
test dword [edi + 0x10], 0x1000
je 0x56b18c
mov ebp, dword [esp + 0x1c]
lea ecx, [eax - 1]
imul ecx, ebx
add dword [esp + 0x24], ecx
neg ebx
push eax
push edx
mov edx, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx - 0x30]
mov ecx, dword [ebx]
push edx
mov edx, dword [ebp + 0x4d20]
push eax
push ecx
call edx
add esi, 1
add ebx, 4
add esp, 0x18
cmp esi, 3
mov dword [esp + 0x10], ebx
jl 0x56b140
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 8
ret
Function at 0x5a7800
Capabilities:
Encode data using xor

Disassembly:
push esi
add eax, 0xffffffff
xor esi, esi
test eax, eax
jle 0x5a783f
push ebx
push edi
add ecx, 2
mov edi, eax
movsx edx, word [ecx + 2]
movsx eax, word [ecx - 2]
sub eax, edx
cdq
mov ebx, eax
movsx eax, word [ecx]
xor ebx, edx
sub ebx, edx
movsx edx, word [ecx + 4]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add eax, esi
add ecx, 4
sub edi, 1
lea esi, [eax + ebx]
jne 0x5a7811
pop edi
pop ebx
mov eax, esi
pop esi
ret
Function at 0x5b9a02
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004ee998
xor ebx, ebx
cmp dword [0x620198], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x5b9ad7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x5b9a42
xor eax, eax
jmp 0x5b9b9b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x5b9a3b
push eax
call fcn.004ee935
mov dword [esp], 0x5cdf54
push edi
mov dword [0x620198], eax
call esi
push eax
call fcn.004ee935
mov dword [esp], 0x5cdf40
push edi
mov dword [0x62019c], eax
call esi
push eax
call fcn.004ee935
mov dword [0x6201a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004e8976
test eax, eax
pop ecx
pop ecx
je 0x5b9aa5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e5695
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x5b9ad7
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.004ee935
cmp eax, ebx
pop ecx
mov dword [0x6201a8], eax
je 0x5b9ad7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ee935
pop ecx
mov dword [0x6201a4], eax
mov eax, dword [0x6201a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x5b9b50
cmp dword [0x6201a8], esi
je 0x5b9b50
push eax
call fcn.004ee9a1
pop ecx
call eax
cmp eax, ebx
je 0x5b9b1d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x6201a8]
call fcn.004ee9a1
pop ecx
call eax
test eax, eax
je 0x5b9b1d
test byte [ebp - 0x18], 1
jne 0x5b9b50
lea eax, [ebp - 0xc]
push eax
call fcn.004e89ad
test eax, eax
pop ecx
je 0x5b9b38
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e5695
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x5b9b47
or dword [ebp + 0x10], 0x200000
jmp 0x5b9b81
or dword [ebp + 0x10], 0x40000
jmp 0x5b9b81
mov eax, dword [0x62019c]
cmp eax, esi
je 0x5b9b81
push eax
call fcn.004ee9a1
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5b9b81
mov eax, dword [0x6201a0]
cmp eax, esi
je 0x5b9b81
push dword [ebp - 4]
push eax
call fcn.004ee9a1
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x620198]
call fcn.004ee9a1
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420400
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jne 0x4204c7
push ebx
push 0x405040
call dword [0x404148]
test eax, eax
jne 0x4204c7
mov esi, 0x405560
push 0x104
push esi
call dword [0x4040a8]
push esi
mov esi, 0x405300
push esi
mov byte [ebp - 0x154], 0x6d
mov byte [ebp - 0x153], 0x61
mov byte [ebp - 0x152], 0x6e
mov byte [ebp - 0x151], 0x61
mov byte [ebp - 0x150], 0x67
mov byte [ebp - 0x14f], 0x65
mov byte [ebp - 0x14e], 0x72
mov byte [ebp - 0x14d], 0x2e
mov byte [ebp - 0x14c], 0x75
mov byte [ebp - 0x14b], 0x73
mov byte [ebp - 0x14a], 0x65
mov byte [ebp - 0x149], bl
call dword [fcn.004040ac]
mov edi, dword [fcn.004040b0]
push 0x405094
push esi
call edi
lea eax, [ebp - 0x154]
push eax
push esi
call edi
lea eax, [ebp - 0x294]
push eax
push esi
call dword [0x4040b4]
cmp eax, 0xffffffff
je 0x4204cf
push 1
pop eax
jmp 0x420603
lea eax, [ebp - 0x424]
push eax
push 0x101
call fcn.00422624
test eax, eax
jne 0x420553
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
mov esi, 0x405040
push eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x402ae4
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
call dword [0x404144]
test ax, ax
jne 0x420536
lea eax, [ebp - 0x2c]
push eax
call dword [0x404140]
test ax, ax
je 0x420553
push ebx
push edi
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
push ebx
push esi
push ebx
call dword [0x40413c]
cmp eax, ebx
mov dword [0x405404], eax
jne 0x42055a
xor eax, eax
jmp 0x420603
push ebx
push eax
call dword [0x404138]
push 1
lea eax, [ebp + 0xc]
pop esi
mov dword [ebp + 0xc], 0x10
push eax
push 0x405420
mov dword [0x405de4], ebx
mov dword [0x405438], esi
call dword [0x4040b8]
call fcn.0042060a
mov dword [0x405408], ebx
call fcn.004223f8
call fcn.004208c8
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push 0x40158d
push ebx
push ebx
call dword [0x4040bc]
cmp dword [0x405438], ebx
je 0x4205ef
cmp dword [0x405438], esi
jne 0x4205cc
cmp dword [0x405de4], ebx
jne 0x4205cc
call fcn.00420b6c
push ebx
push ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call dword [0x404134]
lea eax, [ebp - 0x50]
push eax
call dword [0x404130]
lea eax, [ebp - 0x50]
push eax
call dword [0x40412c]
jmp 0x4205af
call fcn.0042261e
push dword [0x405404]
call dword [0x404158]
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4208c8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
call dword [fcn.00404088]
and byte [ebp - 0x28], 0
mov esi, eax
lea eax, [ebp - 0x34]
mov byte [ebp - 0x34], 0x4b
push eax
mov byte [ebp - 0x33], 0x45
mov byte [ebp - 0x32], 0x52
mov byte [ebp - 0x31], 0x4e
mov byte [ebp - 0x30], 0x45
mov byte [ebp - 0x2f], 0x4c
mov byte [ebp - 0x2e], 0x33
mov byte [ebp - 0x2d], 0x32
mov byte [ebp - 0x2c], 0x2e
mov byte [ebp - 0x2b], 0x44
mov byte [ebp - 0x2a], 0x4c
mov byte [ebp - 0x29], 0x4c
call dword [fcn.0040408c]
and byte [ebp - 0x1e], 0
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [0x4052b0], eax
mov byte [ebp - 0x34], 0x52
mov byte [ebp - 0x33], 0x65
mov byte [ebp - 0x32], 0x67
mov byte [ebp - 0x31], 0x69
mov byte [ebp - 0x30], 0x73
mov byte [ebp - 0x2f], 0x74
mov byte [ebp - 0x2e], 0x65
mov byte [ebp - 0x2d], 0x72
mov byte [ebp - 0x2c], 0x53
mov byte [ebp - 0x2b], 0x65
mov byte [ebp - 0x2a], 0x72
mov byte [ebp - 0x29], 0x76
mov byte [ebp - 0x28], 0x69
mov byte [ebp - 0x27], 0x63
mov byte [ebp - 0x26], 0x65
mov byte [ebp - 0x25], 0x50
mov byte [ebp - 0x24], 0x72
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x63
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x73
mov byte [ebp - 0x1f], 0x73
call dword [fcn.00404090]
test eax, eax
je 0x42098a
push 1
push esi
call eax
pop esi
leave
ret