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

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
call fcn.004ad5d0
push dword [esp + 0x1c]
call fcn.004533a0
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00453000
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad430
pop edx
push eax
push 0x3e8
call fcn.004aae10
call fcn.004ad560
lea eax, [esp + 8]
push eax
call fcn.004ad470
push 0x3e8
mov eax, dword [esp + 8]
push eax
mov eax, 0x54769a
push eax
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov edx, 0x5370c4
lea ecx, [esp + 8]
call fcn.00453008
push edx
call fcn.004ad430
pop edx
push eax
push 0xe
mov edx, dword [esp + 0xc]
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad500
mov edx, 0x544496
push edx
call fcn.004ad500
call fcn.004ad560
push edx
call fcn.004ad430
pop edx
push eax
mov edx, 0x53e510
push edx
call fcn.004ad500
mov edx, dword [esp + 0x10]
push edx
call fcn.004ad500
call fcn.004ad560
mov edx, dword [esp + 0x14]
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad500
mov edx, 0x53ca0a
push edx
call fcn.004ad500
call fcn.00453382
add dword [esp], edx
call fcn.00453382
add dword [esp + 4], edx
call fcn.00453382
add dword [esp + 8], edx
call fcn.0046e404
call fcn.004533a0
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x45057f
push dword [esp + 0xc]
call fcn.0046eb30
and eax, eax
je 0x450576
push dword [esp + 0xc]
call fcn.0046eb77
and eax, eax
je 0x450574
mov edx, dword [esp + 8]
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad500
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad430
pop edx
push eax
push 0x18
push dword [esp + 0x20]
call fcn.0046eb9d
call fcn.00453382
add dword [esp], edx
call fcn.0042a4b3
pop eax
mov edx, 0x54d814
push edx
call fcn.004ad500
lea eax, [esp + 0xc]
push eax
call fcn.004ad470
jmp 0x4504ff
push dword [esp + 0xc]
call fcn.0046ebd6
mov edx, dword [esp + 8]
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad500
pop eax
push eax
call fcn.00453370
pop edx
add eax, edx
jmp 0x4505a7
push dword [esp]
call fcn.004ad630
push dword [esp + 4]
call fcn.004ad630
push dword [esp + 8]
call fcn.004ad630
add esp, 0x10
pop ebx
ret 4
Function at 0x451111
Capabilities:
Delete registry key

Disassembly:
push ebx
mov edx, 7
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x451117
call fcn.004ad5d0
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00453000
mov edx, dword [esp + 0x28]
lea ecx, [esp + 4]
call fcn.00453000
push dword [esp]
call fcn.00451298
push dword [esp + 4]
mov edx, 0x538634
pop ecx
call fcn.00453330
je 0x4511e6
cmp dword [0x1368784], 0
je 0x4511cc
mov eax, 0x537c90
push eax
push 0xffffffff
call fcn.0048f410
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x4511ca
mov eax, 0x5474c4
push eax
push dword [esp + 0xc]
call fcn.0048f46a
mov dword [esp + 0xc], eax
push 0
mov ebx, dword [0x1368788]
or ebx, 0xf003f
push ebx
mov eax, dword [0x1368778]
push eax
push dword [0x1368780]
push dword [esp + 0x1c]
call fcn.0048f4c6
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0048f350
jmp 0x4511e1
mov eax, dword [0x1368778]
push eax
push dword [0x1368780]
call sub.ADVAPI32.dll_RegDeleteKeyW
mov dword [esp + 0x10], eax
jmp 0x45126f
lea eax, [esp + 0x18]
push eax
push dword [0x1368780]
push dword [esp + 0xc]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x1368784], 0
je 0x45125c
mov eax, 0x537c90
push eax
push 0xffffffff
call fcn.0048f410
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x45125a
push 0
mov ebx, dword [0x1368788]
or ebx, 0xf003f
push ebx
mov eax, dword [0x1368778]
push eax
push dword [esp + 0x24]
mov eax, 0x5474c4
push eax
push dword [esp + 0x1c]
call fcn.0048f523
mov dword [esp + 0x10], eax
push dword [esp + 8]
call fcn.0048f350
jmp 0x45126f
mov eax, dword [0x1368778]
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 0x45127e
mov eax, 1
jmp 0x451280
xor eax, eax
push dword [esp + 4]
call fcn.004ad630
push dword [esp]
call fcn.004ad630
add esp, 0x1c
pop ebx
ret 8
Function at 0x45149a
Capabilities:
Get graphical window text

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.004ad5d0
push dword [esp + 0xc]
call fcn.004533a0
mov ebx, dword [0x13687c0]
and ebx, ebx
jne 0x4514d6
push 0
push 0
call sub.USER32.dll_FindWindowW
mov dword [0x13687c4], eax
mov dword [0x13687c0], 1
jmp 0x4514eb
push 2
push dword [0x13687c4]
call sub.USER32.dll_GetWindow
mov dword [0x13687c4], eax
mov ebx, dword [0x13687c4]
and ebx, ebx
je 0x451585
push 0xfffffff0
push dword [0x13687c4]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x10000000
cmp ebx, 0x10000000
jne 0x451583
push 0xffffffec
push dword [0x13687c4]
call sub.USER32.dll_GetWindowLongW
mov ebx, eax
and ebx, 0x80
cmp ebx, 0x80
je 0x451583
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad430
pop edx
push eax
push 0x100
call fcn.004aae10
lea eax, [esp + 4]
push eax
call fcn.004ad470
push 0x100
push dword [esp + 4]
push dword [0x13687c4]
call sub.USER32.dll_GetWindowTextW
push dword [esp]
mov edx, 0x5370c4
pop ecx
call fcn.00453330
jne 0x451583
jmp 0x45159d
jmp 0x45158f
mov dword [0x13687c0], 0
mov ebx, dword [0x13687c4]
and ebx, ebx
jne 0x4514ac
mov edx, dword [esp]
push edx
call fcn.004ad430
pop edx
push eax
push edx
call fcn.004ad500
pop eax
push eax
call fcn.00453370
pop edx
add eax, edx
jmp 0x4515c4
push dword [esp]
call fcn.004ad630
add esp, 4
pop ebx
ret

Function at 0x4515d1
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x19
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4515d8
call fcn.004ad5d0
mov edx, dword [esp + 0x70]
lea ecx, [esp]
call fcn.00453000
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 0x451627
lea ebp, [esp + 4]
mov word [ebp + 0x30], 0
jmp 0x451631
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 0x4516ba
mov ebx, dword [esp + 0x74]
and ebx, 1
and ebx, ebx
je 0x4516b1
lea ebp, [esp + 0x48]
push dword [ebp + 4]
pop eax
mov dword [esp + 0x5c], eax
push 1
call fcn.00497bd3
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x60]
call sub.KERNEL32.dll_GetExitCodeThread
mov ebx, dword [esp + 0x60]
cmp ebx, 0x103
je 0x4516af
jmp 0x4516b1
jmp 0x451689
lea ebp, [esp + 0x48]
mov eax, dword [ebp]
jmp 0x4516bc
xor eax, eax
push dword [esp]
call fcn.004ad630
add esp, 0x64
pop ebx
pop ebp
ret 8
Function at 0x4516e5
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push ebx
mov edx, 0xd
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4516ec
call fcn.004ad5d0
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 0x4517a6
lea eax, [esp + 8]
lea eax, [esp + 8]
push eax
mov eax, 0x53f386
push eax
push 0
call sub.ADVAPI32.dll_LookupPrivilegeValueW
and eax, eax
je 0x45179d
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 0x4517b1
add esp, 0x34
pop ebx
pop ebp
ret

Function at 0x453c15
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 0x453cad
push edi
push 0x13e1f04
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x13688a0]
test edi, edi
je 0x453c81
push ebx
push esi
lea ebx, [edi + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x453c7a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebx
push 0x13688a0
call fcn.004ad347
pop ecx
pop ecx
jmp 0x453c7c
mov edi, dword [edi]
test edi, edi
jne 0x453c51
pop ebx
mov eax, dword [0x1364898]
mov esi, eax
inc eax
push 0x10
push 0x13688a0
mov dword [0x1364898], eax
call fcn.004ad387
pop ecx
pop ecx
push 0x13e1f04
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 0x453cb5
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00453b88
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0x13e1f04
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x13688a0]
jmp 0x453ce6
cmp dword [esi + 0xc], edi
je 0x453cec
mov esi, dword [esi]
test esi, esi
jne 0x453cdf
jmp 0x453d04
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0x13688a0
call fcn.004ad347
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4
Function at 0x453fc4
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x454019
push dword [esp + 0x10]
push 0x453f43
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x13688a8]
test esi, esi
je 0x454072
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x454011
cmp byte [esi + 0x10], 0
je 0x454011
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 0x453fed
jmp 0x454072
mov esi, dword [0x13688a8]
test esi, esi
je 0x454072
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 0x45406b
cmp byte [esi + 0x11], 0
je 0x454047
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x45405e
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 0x13688a8
call fcn.004ad347
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x454026
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x46e9aa
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push dword [0x13e1f30]
call fcn.004aca04
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 0x46eaaa
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x22
cmp dx, word [esp + 0x10]
jne 0x46ea00
push 0x20
pop edx
add eax, 2
cmp word [eax], dx
je 0x46e9f8
movzx edx, word [eax]
mov dword [esp + 0x1c], 1
cmp dx, word [esp + 0x14]
jne 0x46ea40
add eax, 2
mov esi, eax
movzx ecx, word [eax]
test cx, cx
je 0x46ea82
push 0x22
pop edx
cmp cx, dx
je 0x46ea32
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46ea22
xor ecx, ecx
cmp word [eax], cx
je 0x46ea82
mov ecx, eax
add eax, 2
jmp 0x46ea84
test dx, dx
je 0x46ea8a
push 0x20
mov esi, eax
pop ecx
cmp dx, cx
je 0x46ea32
add eax, 2
push 0x22
pop edx
cmp word [eax], dx
jne 0x46ea78
add eax, 2
movzx ecx, word [eax]
test cx, cx
je 0x46ea82
cmp cx, dx
je 0x46ea75
add eax, 2
movzx ecx, word [eax]
test cx, cx
jne 0x46ea65
push 0x20
pop ecx
movzx edx, word [eax]
test dx, dx
jne 0x46ea4a
jmp 0x46ea32
mov ecx, eax
mov edx, dword [esp + 0x1c]
jmp 0x46ea8c
xor edx, edx
cmp dword [ebp], ebx
jne 0x46ea95
test edi, edi
jne 0x46eab2
test edx, edx
je 0x46ea9a
inc ebx
xor edx, edx
mov esi, edx
movzx edx, word [eax]
test dx, dx
jne 0x46e9ee
test edi, edi
jne 0x46eac3
mov eax, ebx
jmp 0x46eac7
test esi, esi
je 0x46eac3
sub ecx, esi
mov eax, esi
sar ecx, 1
mov dword [edi], ecx
inc dword [ebp]
jmp 0x46eac7
xor ecx, ecx
mov dword [edi], ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x46ec2c
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x46ec80
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 0x46ec6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x46ec7a
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x46ec3f
jmp 0x46ec7e
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x46ec86
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 0x46ed45
cmp dword [esp + 0x24], 2
je 0x46ed45
push 0x2000
push ebp
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x46ed14
cmp dword [esp + 0x18], 2
jne 0x46ed30
cmp dword [esp + 0x28], 0xffffffff
je 0x46ecd8
cmp ebp, dword [esp + 0x28]
jae 0x46ed30
add ebp, 2
test ebx, ebx
jne 0x46ecfd
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x46ed30
cmp ax, 0xd
je 0x46ed14
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 0x46ecc4
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.004fa6a0
jmp 0x46edd7
push eax
push 0
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x46ed63
cmp ebp, dword [esp + 0x28]
jae 0x46edbb
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 0x46edbb
cmp dword [esp + 0x18], 1
jne 0x46edbb
inc ebp
test ebx, ebx
jne 0x46eda8
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x46edbb
cmp al, 0xd
je 0x46ed56
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x46ed56
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x46edd2
call fcn.004fa6f0
jmp 0x46edd7
call fcn.004fa640
push esi
push 0
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x46f046
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 0x46f1e5
push esi
mov esi, dword [esp + 0x48]
test esi, esi
je 0x46f1e4
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 0x46f1e3
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push ebp
push dword [0x1368404]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x46f1dc
call fcn.004bf7f0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x46f1c9
lea eax, [esp + 0x20]
push eax
push esi
call sub.MSVCRT.dll__wstat
push 0x1a4
push edi
call fcn.004bfcc0
lea eax, [esp + 0x30]
push eax
push edi
call fcn.004bfe40
mov esi, dword [esp + 0x60]
add esp, 0x18
mov eax, dword [esi + 0x20]
cmp dword [eax + 8], 1
je 0x46f115
cmp dword [eax + 8], 3
je 0x46f115
push dword [esp + 0x50]
push edi
call fcn.004bf590
pop ecx
pop ecx
jmp 0x46f133
push dword [esp + 0x50]
call fcn.004fa5b0
mov esi, eax
push esi
push edi
call fcn.004bfcb0
pop ecx
pop ecx
push esi
call fcn.004fa5a0
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004bfd10
push 0x8000
push edi
call fcn.004bfb60
push edi
push dword [esi]
call fcn.004bffb0
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 0x46f1b0
mov edi, dword [esp + 0x10]
push eax
push ebp
push dword [esi]
call fcn.004bff70
add esp, 0xc
cmp eax, dword [esp + 0x4c]
jne 0x46f1a8
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 0x46f176
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x46f1c2
mov dword [esp + 0x18], 1
push edi
call fcn.004bf720
pop ecx
push ebp
push 0
push dword [0x1368404]
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 0x46f29f
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x46f301
cmp word [esi], di
je 0x46f301
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004c09c0
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004c0bd0
add esp, 0x10
test eax, eax
jne 0x46f300
push 0x24
push 8
push dword [0x1368404]
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 0x46f914
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x46f99a
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 0x46f999
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x46f991
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x46f982
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0046fdc2
mov ebp, eax
push edi
push 0
push dword [0x1368404]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8

Function at 0x46f9a1
Capabilities:
Create thread

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push dword [esp + 0x18]
xor ebp, ebp
push dword [0x13e1f88]
mov ebx, ebp
call fcn.004acc40
mov edi, eax
test edi, edi
je 0x46fa60
push esi
push dword [esp + 0x1c]
call fcn.0046fb41
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 0x46fa23
mov eax, dword [edi + 0xc]
cdq
sub eax, edx
sar eax, 1
push eax
push dword [esp + 0x10]
push dword [edi]
call fcn.0046fd40
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 0x46fa6a
push 0x2000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x46fa49
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 0x48f170
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x13e0be0], 0
jne 0x48f17e
call fcn.0048f0f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x13e0be4]
call esi
test eax, eax
jne 0x48f1a1
call fcn.0048f0f0
push dword [0x13e0be4]
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 0x48f1b0
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 0x48f210
mov ebx, 0x10
test edi, edi
jns 0x48f219
mov edi, 0x10
mov dword [eax], ebx
mov dword [eax + 4], edi
dec ebp
jne 0x48f1e2
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x48f230
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x13e0be0], 0
jne 0x48f23e
call fcn.0048f0f0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x13e0be4]
call esi
mov edx, eax
test edx, edx
jne 0x48f265
call fcn.0048f0f0
push dword [0x13e0be4]
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 0x48f298
mov ebx, 0x10
test esi, esi
jns 0x48f2a1
mov esi, 0x10
mov dword [edx], ebx
mov eax, edi
mov dword [edx + 4], esi
test ebp, ebp
je 0x48f2b0
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x491ab8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x13e1efc]
call fcn.004acc40
mov ebx, eax
test ebx, ebx
je 0x491b1c
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x491ae1
push dword [esp + 0xc]
push ebx
call eax
jmp 0x491b1c
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.004ad790
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.004ad870
pop edi
pop esi
pop ebx
ret 8