joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d710
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41d729
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x41d750
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41d76f
jmp 0x41d760
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41d76f
add edi, 1
cmp edi, edx
jb 0x41d760
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x41d885
cmp ecx, 3
jbe 0x41d7a5
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x41d7e3
cmp cl, 0xff
je 0x41d7e3
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x41d750
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x41d788
movzx ecx, byte [ebp + 0x47e944]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x47e93c], 0
mov cl, byte [ebx + 4]
je 0x41d7cf
test cl, cl
je 0x41d7cf
cmp cl, 0xff
jne 0x41d788
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x41d750
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41d80e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41d814
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41d856
movzx esi, byte [ebp + 0x47e944]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41d839
cmp dl, 0xff
jne 0x41d852
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x41d800
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41d750
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x41d898
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret

Function at 0x423005
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 0x423048
call fcn.00428753
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x423048
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x423063
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00422bbf
test ebx, ebx
mov esi, eax
je 0x423061
test edi, edi
je 0x423061
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4260cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x478e5d
call fcn.00442abc
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00428753
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x426117
call fcn.00428753
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x426128
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x426135
or eax, 0xffffffff
jmp 0x426291
mov ecx, esi
call fcn.00425c1e
mov dword [ebp - 0x14], eax
call fcn.004204b1
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4261b3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4261b3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4261b3
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0041f072
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4261b3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4261b3
mov ecx, ebx
call fcn.004247cd
test eax, eax
je 0x4261b3
push 0
mov ecx, ebx
call fcn.004247e8
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00421eeb
push dword [ebp - 0x14]
call fcn.00420409
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.00425ed4
xor edi, edi
cmp eax, edi
je 0x426210
test byte [esi + 0x3c], 0x10
je 0x4261fa
push 4
pop edi
mov ecx, esi
call fcn.0042468a
test ax, 0x100
je 0x4261f0
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041ff9f
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x426210
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.004249b7
or dword [ebp - 4], 0xffffffff
jmp 0x42623b
cmp dword [ebp - 0x28], edi
je 0x426249
push 1
mov ecx, ebx
call fcn.004247e8
cmp dword [ebp - 0x2c], edi
je 0x426259
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x426272
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x426272
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00425c58
cmp dword [esi + 0x58], edi
je 0x42628e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00442b61
ret
Function at 0x4262fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x42631b
cmp dword [edi + 0x54], 0
jne 0x42631b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00428753
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 [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004262c2
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x427665
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x49d7b0]
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 0x4276a2
push 0x480388
push 4
push eax
call fcn.0043e86f
push eax
call fcn.00403d40
add esp, 0x10
jmp 0x4276b4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42771f
push edi
call fcn.004416a1
mov edi, dword [eax]
call fcn.004416a1
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.00442dec
add esp, 0x18
mov ebx, eax
call fcn.004416a1
cmp dword [eax], 0
je 0x4276ff
call fcn.004416a1
push dword [eax]
call fcn.0041dd58
pop ecx
jmp 0x427706
call fcn.004416a1
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x42771f
cmp ebx, esi
jae 0x42771f
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x427721
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bc9b
leave
ret
Function at 0x428c56
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 0x428c9c
call fcn.00428753
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x428c9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x428cdf
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 0x428cc8
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 0x428cc8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x428cdc
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 0x42ac88
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x42acb1
call fcn.00428753
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x42acd4
push eax
push dword [esi + 4]
call fcn.0042ac13
push esi
push eax
mov ecx, 0x4a1058
call fcn.0042a8e6
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42b94f
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x42b958
xor eax, eax
jmp 0x42b9c1
cmp dword [esp + 8], 0
jne 0x42b964
call fcn.00425286
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0044507d
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x42b99f
push dword [esi + 0x10]
call fcn.00444d83
test eax, eax
pop ecx
jne 0x42b99f
mov esi, dword [esi + 0xc]
call fcn.004416b4
push esi
push dword [eax]
push 1
call fcn.0042f626
push dword [esi + 0x10]
call fcn.00444db2
test eax, eax
pop ecx
je 0x42b9be
push dword [esi + 0x10]
call fcn.00444cd7
push eax
call fcn.00403d40
pop ecx
pop ecx
jmp 0x42b98d
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x42b9ca
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x42b9d4
call fcn.00425286
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0043f4d7
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x42ba01
mov esi, dword [esi + 0xc]
call fcn.004416b4
push esi
push dword [eax]
push 1
call fcn.0042f626
pop esi
ret 8
Function at 0x42c9f8
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 0x42ca26
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42ca44
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042c962
jmp 0x42ca44
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42ca44
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042c962
test edi, edi
mov eax, edi
jne 0x42ca2e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4a1094]
test ecx, ecx
je 0x42cb07
jmp 0x42c9f7
ret 8

Function at 0x43bc9b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49d7b0]
jne 0x43bca5
repz ret
jmp fcn.00448abc
Function at 0x444de1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x444e1e
cmp dword [ebp + 0x14], edi
je 0x444e1e
cmp ecx, edi
jne 0x444e25
call fcn.004416a1
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043c15a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x444e39
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x444e5a
cmp ebx, 0xffffffff
je 0x444e49
push ebx
push edi
push ecx
call fcn.0043bd70
add esp, 0xc
cmp esi, edi
je 0x444e06
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x444e06
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x444e76
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x444e7d
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x444f6e
test word [esi + 0xc], 0x10c
je 0x444ed1
mov eax, dword [esi + 4]
test eax, eax
je 0x444ed1
jl 0x444fcf
cmp ebx, eax
mov edi, ebx
jb 0x444ea2
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x444f76
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043bcef
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x444f66
cmp ebx, dword [ebp - 0xc]
jb 0x444f3e
cmp dword [ebp - 0xc], 0
je 0x444efb
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x444ef0
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x444ef7
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x444f06
mov eax, SysReAllocString
cmp ebx, eax
ja 0x444f06
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x444fa2
push eax
push dword [ebp - 8]
push esi
call fcn.00444b24
pop ecx
push eax
call fcn.00442348
add esp, 0xc
test eax, eax
je 0x444fe1
cmp eax, 0xffffffff
je 0x444fcf
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x444f66
push esi
call fcn.0044f0ca
cmp eax, 0xffffffff
pop ecx
je 0x444fd3
cmp dword [ebp - 4], 0
je 0x444fa2
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x444e85
mov eax, dword [ebp + 0x14]
jmp 0x444e20
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x444f8d
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043bd70
add esp, 0xc
call fcn.004416a1
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x444e16
cmp dword [ebp + 0xc], 0xffffffff
je 0x444fb8
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043bd70
add esp, 0xc
call fcn.004416a1
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x444e16
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x444e20
or dword [esi + 0xc], 0x10
jmp 0x444fd3
Function at 0x4464bc
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 + 0x49db50]
je 0x4464d7
inc edi
cmp edi, 0x17
jb 0x4464c8
cmp edi, 0x17
jae 0x446657
push ebp
push 3
call fcn.00453cf4
cmp eax, 1
pop ecx
je 0x446623
push 3
call fcn.00453cf4
test eax, eax
pop ecx
jne 0x44650b
cmp dword [0x49d760], 1
je 0x446623
cmp ebx, 0xfc
je 0x446656
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4a14c0
push ebp
call fcn.00449734
add esp, 0xc
test eax, eax
je 0x446541
push esi
push esi
push esi
push esi
push esi
call fcn.0043c05e
add esp, 0x14
push 0x104
mov esi, 0x4a14d9
push esi
push 0
mov byte [0x4a15dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x446585
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00449734
add esp, 0xc
test eax, eax
je 0x446585
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043c05e
add esp, 0x14
push esi
call fcn.0043c300
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4465ca
push esi
call fcn.0043c300
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a17d4
push 0x482c44
sub ecx, eax
push ecx
push eax
call fcn.0044cc5d
add esp, 0x14
test eax, eax
je 0x4465ca
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043c05e
add esp, 0x14
jmp 0x4465cc
xor esi, esi
push 0x482c40
push ebx
push ebp
call fcn.0044cbec
add esp, 0xc
test eax, eax
je 0x4465ec
push esi
push esi
push esi
push esi
push esi
call fcn.0043c05e
add esp, 0x14
push dword [edi*8 + 0x49db54]
push ebx
push ebp
call fcn.0044cbec
add esp, 0xc
test eax, eax
je 0x44660e
push esi
push esi
push esi
push esi
push esi
call fcn.0043c05e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00453b37
add esp, 0xc
jmp 0x446656
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x446656
cmp ebp, 0xffffffff
je 0x446656
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49db54]
push dword [esi]
call fcn.0043c300
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 0x453b37
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044706c
xor ebx, ebx
cmp dword [0x4a1f08], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x453c0d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x453ced
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x453ced
push eax
call fcn.00446ffe
mov dword [esp], 0x483f38
push edi
mov dword [0x4a1f08], eax
call esi
push eax
call fcn.00446ffe
mov dword [esp], 0x483f24
push edi
mov dword [0x4a1f0c], eax
call esi
push eax
call fcn.00446ffe
mov dword [0x4a1f10], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043c6ac
test eax, eax
pop ecx
pop ecx
je 0x453bdb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043c05e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x453c0d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00446ffe
cmp eax, ebx
pop ecx
mov dword [0x4a1f18], eax
je 0x453c0d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00446ffe
pop ecx
mov dword [0x4a1f14], eax
mov eax, dword [0x4a1f14]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x453c92
cmp dword [0x4a1f18], ecx
je 0x453c92
push eax
call fcn.00447075
push dword [0x4a1f18]
mov esi, eax
call fcn.00447075
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x453c92
cmp edi, ebx
je 0x453c92
call esi
cmp eax, ebx
je 0x453c5f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x453c5f
test byte [ebp - 0x18], 1
jne 0x453c92
lea eax, [ebp - 0x10]
push eax
call fcn.0043c6e3
test eax, eax
pop ecx
je 0x453c7a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0043c05e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x453c89
or dword [ebp + 0x10], 0x200000
jmp 0x453ccd
or dword [ebp + 0x10], 0x40000
jmp 0x453ccd
mov eax, dword [0x4a1f0c]
cmp eax, dword [ebp - 8]
je 0x453ccd
push eax
call fcn.00447075
cmp eax, ebx
pop ecx
je 0x453ccd
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x453ccd
mov eax, dword [0x4a1f10]
cmp eax, dword [ebp - 8]
je 0x453ccd
push eax
call fcn.00447075
cmp eax, ebx
pop ecx
je 0x453ccd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a1f08]
call fcn.00447075
cmp eax, ebx
pop ecx
je 0x453ced
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x453cef
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x459ab2
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49d7b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00459a47
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.0043bd70
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 0x459b01
cmp dword [ebp - 0x1c], 5
jb 0x459b19
jmp 0x459b15
cmp dword [ebp - 0x10], 1
jne 0x459b19
cmp dword [ebp - 0x1c], 4
ja 0x459b15
jne 0x459b19
cmp dword [ebp - 0x18], 0
jbe 0x459b19
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x484f80
call fcn.00459938
test eax, eax
jge 0x459b3a
mov byte [0x4a26c8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043bc9b
add ebp, 0x78
leave
ret
Function at 0x45aef0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 5
push 0xffffffffffffffff
push 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x45af3a
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e86f
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
jmp 0x45af48
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x45c0f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x49d7b0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov word [ebp - 0x218], 0
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0043bd70
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x45c203
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45c203
lea edx, [ebp - 4]
push edx
push 0x10008
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x45c201
cmp dword [ebp - 0x21c], 0
jne 0x45c1f7
mov dword [ebp - 0x220], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0x103
jne 0x45c1d0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x21c], eax
jmp 0x45c1f7
cmp dword [ebp - 0x21c], 0
jne 0x45c1f2
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0045c0f0
add esp, 8
mov dword [ebp - 0x21c], eax
jmp 0x45c171
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x45c20d
mov dword [ebp - 0x21c], 0x3f2
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043bc9b
mov esp, ebp
pop ebp
ret