joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448aa2
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x448af4
lea eax, [ebp + 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x448ad9
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x448ad7
push 1
push 1
call fcn.00447c53
pop ecx
pop ecx
jmp 0x448aef
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x448aef
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x448b8c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x448b48
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x448b46
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetBkColor]
jmp 0x448b8c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
push dword [eax]
push 1
push 0
push 1
push 0x20ca
mov eax, dword [ebp - 0x3c]
push dword [eax]
call fcn.00447f0a
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x46d9ac
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x46da03
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x46d9eb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x46da01
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x46da01
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x46da15
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push 0
call fcn.0046f752
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46e0cc
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x46e157
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x46e11b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x46e152
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx]
mov byte [ecx + eax], 0
jmp 0x46e1ee
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x46e19b
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x46e199
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_EqualSid]
jmp 0x46e1ee
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0xffffffe8
jmp 0x46e1c9
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 6
jge 0x46e1ee
mov dword [ebp - 0x60], 0x452a26f3
push dword [ebp - 0x5c]
push 0
push dword [ebp - 4]
lea eax, [ebp - 0x60]
push eax
call fcn.004710e5
add esp, 0x10
jmp 0x46e1be
mov esp, ebp
pop ebp
ret
Function at 0x476008
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
push 1
mov esi, ecx
xor ebx, ebx
push 0x5f3f
push esi
mov dword [ebp - 0x18], ebx
call fcn.00471855
push esi
call fcn.0044cb46
add esp, 0x14
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], 0x5b1b6fd4
mov edi, eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x18], 8
push 4
mov dword [ebp - 0xc], ebx
pop ecx
jmp 0x476060
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0x28], 0x4e064826
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ecx
jl 0x476052
mov dword [ebp - 8], ebx
jmp 0x476074
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x28], ebx
inc dword [ebp - 8]
cmp dword [ebp - 8], ecx
jl 0x47606a
mov dword [ebp - 8], ebx
jmp 0x4761d3
mov dword [ebp - 0xc], 0x34e6d4f2
mov dword [ebp - 0x14], 0x27289fff
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x14], 0x7f4ea14c
mov dword [ebp - 0x10], 0xffffffff
mov byte [ebp - 1], bl
cmp byte [ebp - 1], bl
je 0x4760b4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [ebp - 0xc], 3
cmp dword [ebp - 0xc], ebx
jl 0x4761d0
mov dword [ebp - 0x38], 0xbaaa
xor ecx, ecx
mov dword [ebp - 0x34], 0xbaaa
mov dword [ebp - 0x30], 0xbaaa
mov dword [ebp - 0x2c], 0xbaaa
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push 5
mov esi, dword [ebp + eax*4 - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 0xf3cc
mov eax, dword [ebp - 0xc]
setne cl
xor edx, edx
add esi, ecx
mov eax, dword [ebp + eax*4 - 0x28]
cmp eax, esi
mov eax, dword [ebp - 0xc]
setle dl
xor ecx, ecx
mov eax, dword [ebp + eax*4 - 0x28]
cmp edx, eax
setge cl
xor eax, eax
cmp ecx, 0xa116
setle al
xor ecx, ecx
cmp eax, 0xfffffffc
mov eax, 0x7d8cf4c5
setl cl
sub eax, ecx
pop ecx
cmp ecx, eax
mov eax, dword [ebp - 8]
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
setle cl
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], ebx
jne 0x476167
mov eax, dword [ebp - 0xc]
cmp dword [ebp + eax*4 - 0x28], ebx
jne 0x476167
mov eax, ebx
jmp 0x47616a
xor eax, eax
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
je 0x47617e
mov dword [ebp - 0x14], 0xffffffff
inc dword [ebp - 0x14]
jmp 0x4761c7
mov dword [ebp - 0x18], 0x122d800
cmp dword [ebp - 0x10], ebx
jne 0x4761bb
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], ebx
jne 0x47619b
cmp dword [ebp - 0x10], ebx
jne 0x47619b
mov ecx, ebx
jmp 0x47619e
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x14]
add eax, 0xee91f8b1
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x4761bb
mov ecx, ebx
jmp 0x4761be
xor ecx, ecx
inc ecx
mov eax, dword [ebp - 0x38]
imul eax, ecx
mov dword [ebp - 0x18], eax
dec dword [ebp - 0xc]
jns 0x4760c4
dec dword [ebp - 8]
cmp dword [ebp - 8], 0xfffffffc
jle 0x476081
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a5e06
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ab7c0]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004987ab
mov dword [ebp - 0x14], eax
cmp dword [0xaa4cdc], esi
jne 0x4a5ef9
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a5e86
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a5fd9
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a5fd9
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a5fd9
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xaa4cdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xaa4ce0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xaa4ce4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaa4cec], eax
test eax, eax
je 0x4a5ef6
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xaa4ce8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a5f1e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a5f11
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a5f33
push 4
pop eax
jmp 0x4a5fdb
cmp dword [ebp - 0x14], esi
je 0x4a5f33
push dword [0xaa4cdc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a5f18
mov eax, dword [0xaa4ce8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a5f91
cmp dword [0xaa4cec], edi
je 0x4a5f91
push eax
call ebx
push dword [0xaa4cec]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a5f91
test eax, eax
je 0x4a5f91
call ecx
test eax, eax
je 0x4a5f86
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 0x4a5f86
test byte [ebp - 8], 1
jne 0x4a5f91
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a5fc1
mov eax, dword [0xaa4ce0]
cmp eax, edi
je 0x4a5fbe
push eax
call ebx
test eax, eax
je 0x4a5fbe
call eax
mov esi, eax
test esi, esi
je 0x4a5fbe
mov eax, dword [0xaa4ce4]
cmp eax, edi
je 0x4a5fbe
push eax
call ebx
test eax, eax
je 0x4a5fbe
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xaa4cdc]
call ebx
test eax, eax
je 0x4a5fd9
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a5fdb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049578b
mov esp, ebp
pop ebp
ret
Function at 0x404f0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
invalid
invalid

Function at 0x406240
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
or eax, 0xffffffff
lea ecx, [ebp - 0x28]
Function at 0x409ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4c6480]
dec esp
add byte [ecx + 0x5604244c], cl
push edi
test al, 1
je 0x40b3d6
mov edi, dword [ebp + 0x10]
xor eax, eax
push 8
mov word [esp + 0x5c], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], 1
call fcn.00420db6
mov edx, eax
mov dword [esp + 0x20], eax
add esp, 4
test edx, edx
je 0x40b52a
mov dword [edx], 0x14
mov esi, dword [ebp + 0xc]
mov dword [edx + 4], 0
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [esp + 0x50], 1
mov dword [esp + 0x10], 0x17
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
movsx eax, word [eax + 0xa]
mov dword [esp + 0x5c], eax
jmp 0x409faa
or eax, 1
mov dword [0x4c6488], 0
push 0x43b5ec
mov dword [0x4c6480], eax
mov dword [0x4c6490], 0
mov dword [0x4c6494], 1
call fcn.00422d40
add esp, 4
jmp 0x409ebf
xor edx, edx
mov dword [esp + 0x1c], edx
jmp 0x409f04

Function at 0x409eae
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov eax, dword [0x4c6480]
dec esp
add byte [ecx + 0x5604244c], cl
push edi
test al, 1
je 0x40b3d6
mov edi, dword [ebp + 0x10]
xor eax, eax
push 8
mov word [esp + 0x5c], 1
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x30], 1
call fcn.00420db6
mov edx, eax
mov dword [esp + 0x20], eax
add esp, 4
test edx, edx
je 0x40b52a
mov dword [edx], 0x14
mov esi, dword [ebp + 0xc]
mov dword [edx + 4], 0
mov dword [esp + 0x54], edx
mov edx, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [esp + 0x50], 1
mov dword [esp + 0x10], 0x17
mov eax, dword [edx + 4]
mov eax, dword [eax + ecx*4]
movsx eax, word [eax + 0xa]
mov dword [esp + 0x5c], eax
jmp 0x409faa
or eax, 1
mov dword [0x4c6488], 0
push 0x43b5ec
mov dword [0x4c6480], eax
mov dword [0x4c6490], 0
mov dword [0x4c6494], 1
call fcn.00422d40
add esp, 4
jmp 0x409ebf
xor edx, edx
mov dword [esp + 0x1c], edx
jmp 0x409f04

Function at 0x40fce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi

Function at 0x4109d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x160
push esi
push edi
Function at 0x41198a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x44], eax
mov ecx, 0x491d2c
lea eax, [edi + 0xfd]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov edx, 0x492510
lea eax, [edi + 0xfe]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], eax
lea eax, [edi + 0x10c]
mov dword [esp + 0xb0], eax
lea eax, [edi + 0x110]
mov dword [esp + 0xbc], eax
lea eax, [edi + 0x114]
mov dword [esp + 0xc8], eax
lea eax, [edi + 0x100]
mov dword [esp + 0x9c], ecx
mov ecx, 0x4926a4
mov dword [esp + 0xd4], eax
lea eax, [edi + 0xff]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0xc0], ecx
mov ecx, 0x491d2c
mov dword [esp + 0xe0], eax
lea eax, [edi + 0x104]
mov dword [esi + 0xc], 1
mov dword [esp + 0x40], 0x4928fc
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 0x492814
mov dword [esp + 0x58], 0x4927cc
mov dword [esp + 0x64], 0x49297c
mov dword [esp + 0x68], 0x4c57b0
mov dword [esp + 0x6c], 0x4925ec
mov dword [esp + 0x70], 0x492a24
mov dword [esp + 0x74], 0x4c57b4
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], 0x4926bc
mov dword [esp + 0x80], 0x4c57c4
mov dword [esp + 0x84], 0x492af8
mov dword [esp + 0x88], 0x49285c
mov dword [esp + 0x8c], 0x4c57c0
mov dword [esp + 0x90], 0x492adc
mov dword [esp + 0x94], 0x49295c
mov dword [esp + 0x98], 0x4c57bc
mov dword [esp + 0xa0], 0x4929b4
mov dword [esp + 0xa4], 0x4c57b8
mov dword [esp + 0xa8], 0x492aa8
mov dword [esp + 0xac], 0x49289c
mov dword [esp + 0xb8], 0x4926e8
dec ecx
add bh, al
test byte [esp + eax*8], ah
add byte [eax], al
add byte [eax], dl
daa
dec ecx
add bh, al
test byte [esp + ecx*8], ah
add byte [eax], al
add byte [esi - 0x7b38ffb7], dl
and al, 0xd0
add byte [eax], al
add ah, bl
sub byte [ecx], cl

Function at 0x415cf8
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
mov edx, dword [eax + 4]
mov edi, dword [eax]
add edx, edx
mov eax, 0x1505
test edx, edx
jle 0x415d20
movzx ecx, byte [esi + edi]
imul eax, eax, 0x21
add eax, ecx
inc esi
cmp esi, edx
jl 0x415d12
pop edi
pop esi
pop ebp
ret 4
Function at 0x4687b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x4c3190]
jne 0x4687bd
call 0x1b08897
mov eax, dword [0x4c6ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c6ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x4687f5
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c3190]
jne 0x468807
call 0x1b08897
mov eax, dword [0x4c6ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c6ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x46884a
fadd qword [0x4b9e48]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4b9e20]
mov esp, ebp
pop ebp
ret

Function at 0x46885a
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
xor esi, esi
mov dword [0x4c6530], ecx
inc esi
mov ecx, 0x4c6530
invalid

Function at 0x469117
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10974dc
lea ecx, [ebp - 0xdc]
push esi
push edi
call fcn.00438f6d
push dword [ebp + 0x10]
lea ecx, [ebp - 0xdc]
call fcn.00438fb3
xor esi, esi
cmp dword [ebp + 0xc], esi
jbe 0x46915b
mov edi, dword [ebp + 8]
push ecx
push ecx
lea ecx, [ebp - 0xdc]
call fcn.004690eb
xor byte [esi + edi], al
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x469145
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403010
Capabilities:
Get common file path
Get disk information
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x458418]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x45841c]
push esi
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], edx
call fcn.00403000
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x458420]
mov edx, dword [0x458424]
add edi, 0x23f
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x45fbec]
shl esi, 4
add esi, dword [ebp - 0x1c]
cmp eax, 0xfa9
jne 0x40309c
mov dword [0x45fbe8], 0xedeb2e40
jmp 0x4030b7
cmp eax, 0x3eb
jne 0x4030b7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x45f678], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x45fbec], 0x9e6
mov dword [0x45fbe4], 0xf4ea3dee
jne 0x4030ee
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
xor dword [ebp - 4], esi
cmp dword [0x45fbec], 0x213
jne 0x40316a
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoW]
lea eax, [ebp - 0x4c4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [ebp - 0x8c4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
sub ebx, dword [ebp - 4]
cmp dword [0x45fbec], 0xc
jne 0x40318e
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalWire]
mov eax, ebx
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov ecx, ebx
shl ecx, 4
add ecx, dword [ebp - 0x14]
lea edx, [edi + ebx]
xor ecx, edx
xor ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x403070
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4031e0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x45fbec]
mov ecx, dword [0x45f67c]
shr eax, 3
test eax, eax
jbe 0x403262
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCalendarInfoW]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetDevicePowerState]
mov esi, ecx
mov dword [ebp - 4], eax
lea ebx, [ebx]
cmp dword [0x45fbec], 0x959
jne 0x403250
push 0
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push esi
call fcn.00403010
add esi, 8
sub dword [ebp - 4], 1
jne 0x403210
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407590
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4575a8]
jne 0x40759a
repz ret
jmp fcn.0040bf63

Function at 0x40bc1e
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.00408372
and dword [ebp - 4], 0
cmp dword [0x45d628], 0
mov ebx, eax
jne 0x40bccf
push 0x401b60
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bd80
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b54
push edi
call esi
test eax, eax
je 0x40bd80
push eax
call fcn.00408300
mov dword [esp], 0x401b44
push edi
mov dword [0x45d628], eax
call esi
push eax
call fcn.00408300
mov dword [esp], 0x401b30
push edi
mov dword [0x45d62c], eax
call esi
push eax
call fcn.00408300
mov dword [esp], 0x401b14
push edi
mov dword [0x45d630], eax
call esi
push eax
call fcn.00408300
pop ecx
mov dword [0x45d638], eax
test eax, eax
je 0x40bccf
push 0x401afc
push edi
call esi
push eax
call fcn.00408300
pop ecx
mov dword [0x45d634], eax
mov eax, dword [0x45d634]
cmp eax, ebx
je 0x40bd27
cmp dword [0x45d638], ebx
je 0x40bd27
push eax
call fcn.0040837b
push dword [0x45d638]
mov esi, eax
call fcn.0040837b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bd27
test edi, edi
je 0x40bd27
call esi
test eax, eax
je 0x40bd1e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bd1e
test byte [ebp - 0xc], 1
jne 0x40bd27
or dword [ebp + 0x10], 0x200000
jmp 0x40bd60
mov eax, dword [0x45d62c]
cmp eax, ebx
je 0x40bd60
push eax
call fcn.0040837b
pop ecx
test eax, eax
je 0x40bd60
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bd60
mov eax, dword [0x45d630]
cmp eax, ebx
je 0x40bd60
push eax
call fcn.0040837b
pop ecx
test eax, eax
je 0x40bd60
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d628]
call fcn.0040837b
pop ecx
test eax, eax
je 0x40bd80
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bd82
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret