joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44926a
Capabilities:
Query environment variable

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.004a68b0
push dword [esp + 0x1c]
call fcn.0044c470
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.0044c000
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a6710
pop edx
push eax
push 0x3e8
call fcn.004a4170
call fcn.004a6840
lea eax, [esp + 8]
push eax
call fcn.004a6750
push 0x3e8
mov eax, dword [esp + 8]
push eax
mov eax, 0x53d0a8
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov edx, 0x5300ba
lea ecx, [esp + 8]
call fcn.0044c008
push edx
call fcn.004a6710
pop edx
push eax
push 0xe
mov edx, dword [esp + 0xc]
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a67e0
mov edx, 0x53a3b4
push edx
call fcn.004a67e0
call fcn.004a6840
push edx
call fcn.004a6710
pop edx
push eax
mov edx, 0x535c28
push edx
call fcn.004a67e0
mov edx, dword [esp + 0x10]
push edx
call fcn.004a67e0
call fcn.004a6840
mov edx, dword [esp + 0x14]
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a67e0
mov edx, 0x534736
push edx
call fcn.004a67e0
call fcn.0044c452
add dword [esp], edx
call fcn.0044c452
add dword [esp + 4], edx
call fcn.0044c452
add dword [esp + 8], edx
call fcn.004675e4
call fcn.0044c470
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x4493f8
push dword [esp + 0xc]
call fcn.00467d10
and eax, eax
je 0x4493ef
push dword [esp + 0xc]
call fcn.00467d57
and eax, eax
je 0x4493ed
mov edx, dword [esp + 8]
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a67e0
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a6710
pop edx
push eax
push 0x18
push dword [esp + 0x20]
call fcn.00467d7d
call fcn.0044c452
add dword [esp], edx
call fcn.00428946
pop eax
mov edx, 0x541ab6
push edx
call fcn.004a67e0
lea eax, [esp + 0xc]
push eax
call fcn.004a6750
jmp 0x449378
push dword [esp + 0xc]
call fcn.00467db6
mov edx, dword [esp + 8]
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a67e0
pop eax
push eax
call fcn.0044c440
pop edx
add eax, edx
jmp 0x449420
push dword [esp]
call fcn.004a6910
push dword [esp + 4]
call fcn.004a6910
push dword [esp + 8]
call fcn.004a6910
add esp, 0x10
pop ebx
ret 4
Function at 0x449f3d
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x449f43
call fcn.004a68b0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.0044c000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.0044c000
push dword [esp]
call fcn.0044a0c4
push dword [esp + 4]
mov edx, 0x530fca
pop ecx
call fcn.0044c400
je 0x44a012
cmp dword [0x1ddaeac], 0
je 0x449ff8
mov eax, 0x5308f6
push eax
push 0xffffffff
call fcn.004885e0
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x449ff6
mov eax, 0x53ced2
push eax
push dword [esp + 0xc]
call fcn.0048863a
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0x1ddaeb0]
or ebx, 0xf003f
push ebx
mov eax, dword [0x1ddaea0]
push eax
push dword [0x1ddaea8]
push dword [esp + 0x1c]
call fcn.00488696
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00488520
jmp 0x44a00d
mov eax, dword [0x1ddaea0]
push eax
push dword [0x1ddaea8]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x44a09b
lea eax, [esp + 0x18]
push eax
push dword [0x1ddaea8]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x1ddaeac], 0
je 0x44a088
mov eax, 0x5308f6
push eax
push 0xffffffff
call fcn.004885e0
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x44a086
push 0
mov ebx, dword [0x1ddaeb0]
or ebx, 0xf003f
push ebx
mov eax, dword [0x1ddaea0]
push eax
push dword [esp + 0x24]
mov eax, 0x53ced2
push eax
push dword [esp + 0x1c]
call fcn.004886f3
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.00488520
jmp 0x44a09b
mov eax, dword [0x1ddaea0]
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x10]
and ebx, ebx
jne 0x44a0aa
mov eax, 1
jmp 0x44a0ac
xor eax, eax
push dword [esp + 4]
call fcn.004a6910
push dword [esp]
call fcn.004a6910
add esp, 0x1c
pop ebx
ret 8
Function at 0x44a2c6
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.004a68b0
push dword [esp + 0xc]
call fcn.0044c470
mov ebx, dword [0x1ddaee8]
and ebx, ebx
jne 0x44a302
push 0
push 0
call sub.USER32.dll_FindWindowW
mov dword [0x1ddaeec], eax
mov dword [0x1ddaee8], 1
jmp 0x44a317
push 2
push dword [0x1ddaeec]
call sub.USER32.dll_GetWindow
mov dword [0x1ddaeec], eax
mov ebx, dword [0x1ddaeec]
and ebx, ebx
je 0x44a3b1
push 0xfffffff0
push dword [0x1ddaeec]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x10000000
cmp ebx, 0x10000000
jne 0x44a3af
push 0xffffffec
push dword [0x1ddaeec]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x80
cmp ebx, 0x80
je 0x44a3af
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a6710
pop edx
push eax
push 0x100
call fcn.004a4170
lea eax, [esp + 4]
push eax
call fcn.004a6750
push 0x100
push dword [esp + 4]
push dword [0x1ddaeec]
call sub.USER32.dll_GetWindowTextW
push dword [esp]
mov edx, 0x5300ba
pop ecx
call fcn.0044c400
jne 0x44a3af
jmp 0x44a3c9
jmp 0x44a3bb
mov dword [0x1ddaee8], 0
mov ebx, dword [0x1ddaeec]
and ebx, ebx
jne 0x44a2d8
mov edx, dword [esp]
push edx
call fcn.004a6710
pop edx
push eax
push edx
call fcn.004a67e0
pop eax
push eax
call fcn.0044c440
pop edx
add eax, edx
jmp 0x44a3f0
push dword [esp]
call fcn.004a6910
add esp, 4
pop ebx
ret

Function at 0x44a3fd
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x44a404
call fcn.004a68b0
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.0044c000
lea eax, [esp + 4]
lea eax, [esp + 0x48]
lea ebp, [esp + 4]
mov dword [ebp], 0x44
mov dword [ebp + 0x2c], 1
mov ebx, dword [esp + 0x74]
and ebx, 2
and ebx, ebx
je 0x44a453
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x44a45d
lea ebp, [esp + 4]
mov word [ebp + 0x30], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x20]
push 0
call sub.KERNEL32.dll_CreateProcessW
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
je 0x44a4e6
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x44a4dd
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.00490d8b
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x44a4db
jmp 0x44a4dd
jmp 0x44a4b5
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x44a4e8
xor eax, eax
push dword [esp]
call fcn.004a6910
add esp, 0x64
pop ebx
pop ebp
ret 8
Function at 0x44a511
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x44a518
call fcn.004a68b0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0x28
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.ADVAPI32.dll_OpenProcessToken
and eax, eax
je 0x44a5d2
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
mov eax, 0x536636
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
and eax, eax
je 0x44a5c9
lea eax, [esp + 0x10]
lea ebp, [esp + 0x10]
mov dword [ebp], 1
lea ebp, [esp + 8]
push dword [ebp]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 4], eax
lea ebp, [esp + 8]
push dword [ebp + 4]
lea ebp, [esp + 0x14]
push ebp
pop ebp
pop eax
mov dword [ebp + 8], eax
push ebp
pop ebp
mov dword [ebp + 0xc], 2
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push dword [esp + 0x18]
call sub.ADVAPI32.dll_AdjustTokenPrivileges
push eax
pop eax
mov byte [esp], al
push dword [esp + 4]
call sub.KERNEL32.dll_CloseHandle
movsx eax, byte [esp]
movsx eax, al
jmp 0x44a5dd
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x44cdb4
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, eax
test ebp, ebp
je 0x44ce4c
push edi
push 0x1e5464c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x1ddafc8]
test edi, edi
je 0x44ce20
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44ce19
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x1ddafc8
call fcn.004a6631
pop ecx
pop ecx
jmp 0x44ce1b
mov edi, dword [edi]
test edi, edi
jne 0x44cdf0
pop ebx
mov eax, dword [0x1dd70d0]
mov esi, eax
inc eax
push 0x10
push 0x1ddafc8
mov dword [0x1dd70d0], eax
call fcn.004a6671
pop ecx
pop ecx
push 0x1e5464c
mov dword [eax], ebp
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8

Function at 0x44ce54
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.0044cc58
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x1e5464c
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x1ddafc8]
jmp 0x44ce85
cmp dword [esi + 0xc], edi
je 0x44ce8b
mov esi, dword [esi]
test esi, esi
jne 0x44ce7e
jmp 0x44cea3
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x1ddafc8
call fcn.004a6631
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x44d1a3
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x44d1f8
push dword [esp + 0x10]
push 0x44d122
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x1ddafd4]
test esi, esi
je 0x44d251
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x44d1f0
cmp byte [esi + 0x10], 0
je 0x44d1f0
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x44d1cc
jmp 0x44d251
mov esi, dword [0x1ddafd4]
test esi, esi
je 0x44d251
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x44d24a
cmp byte [esi + 0x11], 0
je 0x44d226
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x44d23d
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x1ddafd4
call fcn.004a6631
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x44d205
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x467b8a
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x1e5467c]
call fcn.004a5cf4
mov ebp, eax
or ebx, 0xffffffff
xor eax, eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
movzx edx, word [eax]
test dx, dx
je 0x467c8a
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x467be0
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x467bd8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x467c20
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x467c62
push 0x22
pop edx
cmp cx, dx
je 0x467c12
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x467c02
xor ecx, ecx
cmp word [eax], cx
je 0x467c62
mov ecx, eax
add eax, 2
jmp 0x467c64
test dx, dx
je 0x467c6a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x467c12
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x467c58
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x467c62
cmp cx, dx
je 0x467c55
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x467c45
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x467c2a
jmp 0x467c12
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x467c6c
xor edx, edx
cmp dword [ebp], ebx
jne 0x467c75
test edi, edi
jne 0x467c92
test edx, edx
je 0x467c7a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x467bce
test edi, edi
jne 0x467ca3
mov eax, ebx
jmp 0x467ca7
test esi, esi
je 0x467ca3
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x467ca7
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x467e0c
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x467e60
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467e4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x467e5a
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x467e1f
jmp 0x467e5e
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x467e66
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x467f25
cmp dword [esp + 0x24], 2
je 0x467f25
push 0x2000
push ebp
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x467ef4
cmp dword [esp + 0x18], 2
jne 0x467f10
cmp dword [esp + 0x28], 0xffffffff
je 0x467eb8
cmp ebp, dword [esp + 0x28]
jae 0x467f10
add ebp, 2
test ebx, ebx
jne 0x467edd
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x467f10
cmp ax, 0xd
je 0x467ef4
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x467ea4
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004f3980
jmp 0x467fb7
push eax
push 0
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x467f43
cmp ebp, dword [esp + 0x28]
jae 0x467f9b
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x467f9b
cmp dword [esp + 0x18], 1
jne 0x467f9b
inc ebp
test ebx, ebx
jne 0x467f88
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x467f9b
cmp al, 0xd
je 0x467f36
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x467f36
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x467fb2
call fcn.004f39d0
jmp 0x467fb7
call fcn.004f3920
push esi
push 0
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x468226
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x34
mov eax, dword [esp + 0x38]
push ebp
xor ebp, ebp
push edi
cmp dword [eax + 8], 1
mov edi, ebp
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebp
jne 0x4683c5
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x4683c4
push ebx
push ebp
push pe_nt_image_headers32
push 3
push ebp
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4683c3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x1ddab40]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x4683bc
call fcn.004b8ad0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4683a9
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004b8fa0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004b9120
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x4682f5
cmp dword [eax + 8], 3
je 0x4682f5
push dword [esp + 0x50]
push edi
call fcn.004b8870
pop ecx
pop ecx
jmp 0x468313
push dword [esp + 0x50]
call fcn.004f3890
mov esi, eax
push esi
push edi
call fcn.004b8f90
pop ecx
pop ecx
push esi
call fcn.004f3880
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004b8ff0
push 0x8000
push edi
call fcn.004b8e40
push edi
push dword [esi]
call fcn.004b9290
add esp, 0x1c
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x468390
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004b9250
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x468388
add edi, dword [esp + 0x4c]
lea eax, [esp + 0x4c]
push 0
push eax
push 0x200000
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x4c]
test eax, eax
jg 0x468356
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x4683a2
mov dword [esp + 0x18], 1
push edi
call fcn.004b8a00
pop ecx
push ebp
push 0
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, edi
pop edi
pop ebp
add esp, 0x34
ret 0xc

Function at 0x46847f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x4684e1
cmp word [esi], di
je 0x4684e1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004b9ca0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004b9eb0
add esp, 0x10
test eax, eax
jne 0x4684e0
push 0x24
push 8
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [ecx + 0x20], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x468af4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push edi
xor edi, edi
mov ebx, edi
cmp dword [esp + 0x10], ebx
je 0x468b74
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x468b73
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
push ebp
push edi
push dword [0x1ddab40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x468b6b
push ebx
lea eax, [esp + 0x1c]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push edi
push dword [esp + 0x1c]
call fcn.00468f92
push edi
push 0
push dword [0x1ddab40]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop edi
mov eax, ebx
pop ebx
ret 8

Function at 0x468b7b
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0x1e546d4]
mov ebx, ebp
call fcn.004a5f30
mov edi, eax
test edi, edi
je 0x468c3a
push esi
push dword [esp + 0x1c]
call fcn.00468d1b
mov esi, dword [edi + 8]
lea eax, [esp + 0x14]
push ebp
push ebp
push ebp
push eax
lea eax, [esp + 0x20]
mov dword [edi + 4], 1
mov ecx, dword [esi]
push eax
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push ebp
push esi
call dword [ecx + 0x2c]
pop esi
test eax, eax
jne 0x468bfd
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.00468f10
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, dword [eax]
push ebp
push ebp
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [ecx + 0x4c]
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push 0x468c44
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x468c23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
mov eax, dword [edi + 8]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov ecx, dword [edi + 8]
push 1
push ebp
push ebp
mov edx, dword [ecx]
push ecx
call dword [edx + 0x30]
pop edi
pop ebp
mov eax, ebx
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x488340
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1e53308], 0
jne 0x48834e
call fcn.004882c0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x1e5330c]
call esi
test eax, eax
jne 0x488371
call fcn.004882c0
push dword [0x1e5330c]
call esi
mov edx, dword [esp + 0x14]
lea esi, [eax + 8]
mov edi, 0x11
lea ecx, [ecx]
imul ecx, edx, 0x53a9b4fb
lea esi, [esi + 4]
mov edx, 1
sub edx, ecx
imul ecx, edx, 0x53a9b4fb
mov dword [esi + 0x40], edx
mov edx, 1
sub edx, ecx
mov dword [esi - 4], edx
dec edi
jne 0x488380
mov dword [eax], edi
lea ebp, [edi + 0x1f]
mov dword [eax + 4], 0xa
mov ebx, dword [eax]
mov edi, dword [eax + 4]
mov edx, dword [eax + ebx*4 + 8]
mov ecx, dword [eax + ebx*4 + 0x4c]
mov esi, dword [eax + edi*4 + 8]
ror ecx, 0xd
add ecx, dword [eax + edi*4 + 0x4c]
dec edi
ror edx, 5
add edx, esi
mov dword [eax + ebx*4 + 8], ecx
mov dword [eax + ebx*4 + 0x4c], edx
dec ebx
jns 0x4883e0
mov ebx, 0x10
test edi, edi
jns 0x4883e9
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x4883b2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x488400
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x1e53308], 0
jne 0x48840e
call fcn.004882c0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x1e5330c]
call esi
mov edx, eax
test edx, edx
jne 0x488435
call fcn.004882c0
push dword [0x1e5330c]
call esi
mov edx, eax
mov ebx, dword [edx]
mov esi, dword [edx + 4]
mov ebp, dword [esp + 0x14]
inc ebp
mov edi, dword [edx + ebx*4 + 0x4c]
mov eax, dword [edx + ebx*4 + 8]
mov ecx, dword [edx + esi*4 + 8]
ror edi, 0xd
add edi, dword [edx + esi*4 + 0x4c]
dec esi
ror eax, 5
add eax, ecx
mov dword [edx + ebx*4 + 8], edi
mov dword [edx + ebx*4 + 0x4c], eax
dec ebx
jns 0x488468
mov ebx, 0x10
test esi, esi
jns 0x488471
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x488480
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x48ace4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x1e54644]
call fcn.004a5f30
mov ebx, eax
test ebx, ebx
je 0x48ad48
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x48ad0d
push dword [esp + 0xc]
push ebx
call eax
jmp 0x48ad48
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004a6a70
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.004a6b50
pop edi
pop esi
pop ebx
ret 8