joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4517c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b770e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4eaf00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x1c], 0x5c
mov byte [ebp - 0x1b], 0x43
mov byte [ebp - 0x1a], 0x61
mov byte [ebp - 0x19], 0x62
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x2e
mov byte [ebp - 0x15], 0x65
mov byte [ebp - 0x14], 0x78
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0
mov eax, dword [0x4f3ba0]
and eax, 1
jne 0x45185f
mov ecx, dword [0x4f3ba0]
or ecx, 1
mov dword [0x4f3ba0], ecx
mov dword [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
call fcn.004514d0
push eax
push 0x4f3b84
call fcn.0040d7a0
add esp, 0xc
push 0x4c3210
call fcn.0047bb5c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4f3b84
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047b434
mov esp, ebp
pop ebp
ret

Function at 0x460314
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 0x460357
call fcn.00468c5a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x460357
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x460372
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0045fecb
test ebx, ebx
mov esi, eax
je 0x460370
test edi, edi
je 0x460370
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x46527c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x4eaf00]
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 - 0x11c]
jne 0x4652bc
push 0x4c7b10
push 4
push eax
call fcn.0047d5f0
push eax
call fcn.004010d0
add esp, 0x10
jmp 0x4652ce
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x46533c
push edi
call fcn.00482b98
mov edi, dword [eax]
call fcn.00482b98
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0047b906
add esp, 0x18
mov ebx, eax
call fcn.00482b98
cmp dword [eax], 0
je 0x46531c
call fcn.00482b98
push dword [eax]
call fcn.0045afe9
pop ecx
jmp 0x465323
call fcn.00482b98
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x46533c
cmp ebx, esi
jae 0x46533c
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x46533e
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047b434
leave
ret
Function at 0x4669b7
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 0x4669fd
call fcn.00468c5a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4669fd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x466a40
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 0x466a29
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 0x466a29
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x466a3d
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 0x46932c
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 0x469355
call fcn.00468c5a
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_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x469378
push eax
push dword [esi + 4]
call fcn.004692b7
push esi
push eax
mov ecx, 0x4f577c
call fcn.00468f6d
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x469b2d
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4b8791
call fcn.004829fa
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.00469aef
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00401490
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x469b94
push eax
push dword [esi + 8]
call fcn.004692b7
push dword [esi + 0xc]
mov ecx, 0x4f577c
push eax
call fcn.00468f6d
mov eax, esi
call fcn.00482ad2
ret 0x1c
Function at 0x46cf36
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 0x46cf64
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46cf82
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046cea0
jmp 0x46cf82
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46cf82
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0046cea0
test edi, edi
mov eax, edi
jne 0x46cf6c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4f57b8]
test ecx, ecx
je 0x46d045
jmp 0x46cf35
ret 8

Function at 0x479581
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x47958a
xor eax, eax
jmp 0x4795f3
cmp dword [esp + 8], 0
jne 0x479596
call fcn.00460542
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.0047ed9f
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4795d1
push dword [esi + 0x10]
call fcn.0047f529
test eax, eax
pop ecx
jne 0x4795d1
mov esi, dword [esi + 0xc]
call fcn.00482bab
push esi
push dword [eax]
push 1
call fcn.00477591
push dword [esi + 0x10]
call fcn.0047f558
test eax, eax
pop ecx
je 0x4795f0
push dword [esi + 0x10]
call fcn.00484365
push eax
call fcn.004010d0
pop ecx
pop ecx
jmp 0x4795bf
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4795fc
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x479606
call fcn.00460542
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0047c7f6
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x479633
mov esi, dword [esi + 0xc]
call fcn.00482bab
push esi
push dword [eax]
push 1
call fcn.00477591
pop esi
ret 8

Function at 0x47b434
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eaf00]
jne 0x47b43e
repz ret
jmp fcn.00485d84
Function at 0x47eb03
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 0x47eb40
cmp dword [ebp + 0x14], edi
je 0x47eb40
cmp ecx, edi
jne 0x47eb47
call fcn.00482b98
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0047be0a
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x47eb5b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x47eb7c
cmp ebx, 0xffffffff
je 0x47eb6b
push ebx
push edi
push ecx
call fcn.0047fa50
add esp, 0xc
cmp esi, edi
je 0x47eb28
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x47eb28
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x47eb98
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x47eb9f
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x47ec90
test word [esi + 0xc], 0x10c
je 0x47ebf3
mov eax, dword [esi + 4]
test eax, eax
je 0x47ebf3
jl 0x47ecf1
cmp ebx, eax
mov edi, ebx
jb 0x47ebc4
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x47ec98
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0047b443
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 0x47ec88
cmp ebx, dword [ebp - 0xc]
jb 0x47ec60
cmp dword [ebp - 0xc], 0
je 0x47ec1d
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x47ec12
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x47ec19
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x47ec28
mov eax, SysReAllocString
cmp ebx, eax
ja 0x47ec28
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x47ecc4
push eax
push dword [ebp - 8]
push esi
call fcn.004841b2
pop ecx
push eax
call fcn.0048caf3
add esp, 0xc
test eax, eax
je 0x47ed03
cmp eax, 0xffffffff
je 0x47ecf1
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x47ec88
push esi
call fcn.00489cd4
cmp eax, 0xffffffff
pop ecx
je 0x47ecf5
cmp dword [ebp - 4], 0
je 0x47ecc4
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 0x47eba7
mov eax, dword [ebp + 0x14]
jmp 0x47eb42
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x47ecaf
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0047fa50
add esp, 0xc
call fcn.00482b98
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x47eb38
cmp dword [ebp + 0xc], 0xffffffff
je 0x47ecda
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0047fa50
add esp, 0xc
call fcn.00482b98
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x47eb38
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x47eb42
or dword [esi + 0xc], 0x10
jmp 0x47ecf5
Function at 0x48112b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x481158
call fcn.00482bab
mov dword [eax], esi
call fcn.00482b98
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0047be0a
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x481134
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x481187
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00482bbe
pop ecx
call fcn.00482b98
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4811ae
test al, 1
je 0x4811ae
test byte [esp + 0xc], 2
je 0x4811ae
call fcn.00482bab
mov dword [eax], 5
call fcn.00482b98
mov dword [eax], 0xd
jmp 0x48117e
xor eax, eax
pop esi
ret
Function at 0x48b669
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 + 0x4ebca8]
je 0x48b684
inc edi
cmp edi, 0x17
jb 0x48b675
cmp edi, 0x17
jae 0x48b804
push ebp
push 3
call fcn.0048f7e4
cmp eax, 1
pop ecx
je 0x48b7d0
push 3
call fcn.0048f7e4
test eax, eax
pop ecx
jne 0x48b6b8
cmp dword [0x4eaefc], 1
je 0x48b7d0
cmp ebx, 0xfc
je 0x48b803
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f60a8
push ebp
call fcn.0047d5f0
add esp, 0xc
test eax, eax
je 0x48b6ee
push esi
push esi
push esi
push esi
push esi
call fcn.0047bd0e
add esp, 0x14
push 0x104
mov esi, 0x4f60c1
push esi
push 0
mov byte [0x4f61c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48b732
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047d5f0
add esp, 0xc
test eax, eax
je 0x48b732
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0047bd0e
add esp, 0x14
push esi
call fcn.0047f2e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48b777
push esi
call fcn.0047f2e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f63bc
push 0x4ca094
sub ecx, eax
push ecx
push eax
call fcn.0047fd8e
add esp, 0x14
test eax, eax
je 0x48b777
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0047bd0e
add esp, 0x14
jmp 0x48b779
xor esi, esi
push 0x4ca8b8
push ebx
push ebp
call fcn.0047faca
add esp, 0xc
test eax, eax
je 0x48b799
push esi
push esi
push esi
push esi
push esi
call fcn.0047bd0e
add esp, 0x14
push dword [edi*8 + 0x4ebcac]
push ebx
push ebp
call fcn.0047faca
add esp, 0xc
test eax, eax
je 0x48b7bb
push esi
push esi
push esi
push esi
push esi
call fcn.0047bd0e
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00499ec8
add esp, 0xc
jmp 0x48b803
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48b803
cmp ebp, 0xffffffff
je 0x48b803
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4ebcac]
push dword [esi]
call fcn.0047f2e0
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 0x48f3b3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00486dff
xor ebx, ebx
cmp dword [0x4f6504], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x48f489
push 0x4caa30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x48f569
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x48f569
push eax
call fcn.00486d91
mov dword [esp], 0x4caa14
push edi
mov dword [0x4f6504], eax
call esi
push eax
call fcn.00486d91
mov dword [esp], 0x4caa00
push edi
mov dword [0x4f6508], eax
call esi
push eax
call fcn.00486d91
mov dword [0x4f650c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047d37d
test eax, eax
pop ecx
pop ecx
je 0x48f457
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047bd0e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x48f489
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.00486d91
cmp eax, ebx
pop ecx
mov dword [0x4f6514], eax
je 0x48f489
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00486d91
pop ecx
mov dword [0x4f6510], eax
mov eax, dword [0x4f6510]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x48f50e
cmp dword [0x4f6514], ecx
je 0x48f50e
push eax
call fcn.00486e08
push dword [0x4f6514]
mov esi, eax
call fcn.00486e08
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x48f50e
cmp edi, ebx
je 0x48f50e
call esi
cmp eax, ebx
je 0x48f4db
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48f4db
test byte [ebp - 0x18], 1
jne 0x48f50e
lea eax, [ebp - 0x10]
push eax
call fcn.0047d3b4
test eax, eax
pop ecx
je 0x48f4f6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047bd0e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x48f505
or dword [ebp + 0x10], 0x200000
jmp 0x48f549
or dword [ebp + 0x10], 0x40000
jmp 0x48f549
mov eax, dword [0x4f6508]
cmp eax, dword [ebp - 8]
je 0x48f549
push eax
call fcn.00486e08
cmp eax, ebx
pop ecx
je 0x48f549
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x48f549
mov eax, dword [0x4f650c]
cmp eax, dword [ebp - 8]
je 0x48f549
push eax
call fcn.00486e08
cmp eax, ebx
pop ecx
je 0x48f549
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f6504]
call fcn.00486e08
cmp eax, ebx
pop ecx
je 0x48f569
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48f56b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x499ec8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00486dff
xor ebx, ebx
cmp dword [0x4f6560], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x499f9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49a07e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4cc71c
push edi
call esi
cmp eax, ebx
je 0x49a07e
push eax
call fcn.00486d91
mov dword [esp], 0x4caa14
push edi
mov dword [0x4f6560], eax
call esi
push eax
call fcn.00486d91
mov dword [esp], 0x4caa00
push edi
mov dword [0x4f6564], eax
call esi
push eax
call fcn.00486d91
mov dword [0x4f6568], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047d37d
test eax, eax
pop ecx
pop ecx
je 0x499f6c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047bd0e
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x499f9e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00486d91
cmp eax, ebx
pop ecx
mov dword [0x4f6570], eax
je 0x499f9e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00486d91
pop ecx
mov dword [0x4f656c], eax
mov eax, dword [0x4f656c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49a023
cmp dword [0x4f6570], ecx
je 0x49a023
push eax
call fcn.00486e08
push dword [0x4f6570]
mov esi, eax
call fcn.00486e08
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49a023
cmp edi, ebx
je 0x49a023
call esi
cmp eax, ebx
je 0x499ff0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x499ff0
test byte [ebp - 0x18], 1
jne 0x49a023
lea eax, [ebp - 0x10]
push eax
call fcn.0047d3b4
test eax, eax
pop ecx
je 0x49a00b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0047bd0e
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49a01a
or dword [ebp + 0x10], 0x200000
jmp 0x49a05e
or dword [ebp + 0x10], 0x40000
jmp 0x49a05e
mov eax, dword [0x4f6564]
cmp eax, dword [ebp - 8]
je 0x49a05e
push eax
call fcn.00486e08
cmp eax, ebx
pop ecx
je 0x49a05e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49a05e
mov eax, dword [0x4f6568]
cmp eax, dword [ebp - 8]
je 0x49a05e
push eax
call fcn.00486e08
cmp eax, ebx
pop ecx
je 0x49a05e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f6560]
call fcn.00486e08
cmp eax, ebx
pop ecx
je 0x49a07e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49a080
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a3260
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4b9a79
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4eaf00]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
call fcn.004a3700
mov dword [esi + 4], eax
mov bl, 1
mov byte [eax + 0x19], bl
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
xor edi, edi
mov dword [eax + 8], eax
mov dword [esi + 8], edi
mov dword [esp + 0x20], edi
call fcn.004a5390
movzx eax, al
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
lea ebp, [esi + 0x30]
mov dword [esi + 0x24], edi
mov ecx, ebp
mov byte [esp + 0x20], bl
mov dword [esi + 0x28], edi
call fcn.004a1a40
mov dword [ebp + 4], eax
mov byte [eax + 0x15], bl
mov eax, dword [ebp + 4]
mov dword [eax + 4], eax
mov eax, dword [ebp + 4]
mov dword [eax], eax
mov eax, dword [ebp + 4]
mov dword [eax + 8], eax
mov dword [ebp + 8], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
lea ebx, [esi + 0x4c]
mov ecx, ebx
mov byte [esp + 0x20], 3
call fcn.004a19e0
mov dword [ebx + 4], eax
mov dword [ebx + 8], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x4a5b50
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x4b9d58
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x4eaf00]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x50]
push eax
lea ecx, [esp + 0x1c]
mov byte [esi + 8], 1
call fcn.004a5840
lea ecx, [esi + 4]
push ecx
push 0
lea edx, [esp + 0x20]
push edx
push 0x4a5a90
push 0
push 0
mov dword [esp + 0x60], 0
call fcn.00483344
add esp, 0x18
test eax, eax
mov dword [esi], eax
jne 0x4a5bca
lea ecx, [esp + 8]
call fcn.004a5de0
push 0x4dd100
lea eax, [esp + 0xc]
push eax
call fcn.0047f295
lea ecx, [esp + 0x18]
call fcn.004a5920
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.004a58a0
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x44
ret 4
Function at 0x4a6150
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x10
push edi
push 0x4f6880
push 0x4a6060
call fcn.004a6380
mov edi, dword [0x4f687c]
add esp, 8
mov ecx, edi
mov dword [esp + 4], edi
call fcn.004a5d30
mov eax, dword [0x4ec664]
cmp eax, 0xffffffff
mov byte [esp + 8], 1
jne 0x4a6191
mov ecx, edi
pop edi
add esp, 0x10
jmp fcn.004a5d50
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4a6212
mov eax, dword [0x4ec664]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4a6212
sub dword [0x4f6884], 1
lea ecx, [esp + 8]
call fcn.00459690
cmp dword [esi + 8], 0
je 0x4a61f7
mov eax, dword [esi + 4]
mov edi, dword [eax]
cmp edi, eax
jne 0x4a61d5
call fcn.0047be2e
mov edi, dword [edi + 8]
test edi, edi
je 0x4a61de
call edi
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
push eax
push esi
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004a60f0
cmp dword [esi + 8], 0
jne 0x4a61c7
mov ecx, esi
call fcn.004a1b60
push esi
call fcn.0045afe4
add esp, 4
cmp byte [esp + 0xc], 0
je 0x4a621e
mov edi, dword [esp + 8]
pop esi
mov ecx, edi
pop edi
add esp, 0x10
jmp fcn.004a5d50
pop esi
pop edi
add esp, 0x10
ret