joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x41c550
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x41c620
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp eax, 1
je 0x41c650
cmp eax, 3
jne 0x41c53b
mov eax, dword [0x4ba0d0]
cmp eax, 0xffffffff
je 0x41c53b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41c53b
lea esi, [eax + 0x1c]
lea edi, [eax + 0x38]
test byte [eax + 0x20], 0x30
je 0x41c680
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41c599
call fcn.0041c260
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41c5cb
mov dword [esp], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebp
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x41c5bd
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
mov dword [esp], esi
call fcn.0041b6e0
mov dword [esp], edi
call fcn.0041b8a0
cmp eax, 1
je 0x41c746
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x41c73a
mov eax, dword [0x4ba0d0]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x41c53b
mov eax, dword [0x507bd0]
test eax, eax
je 0x41c53b
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x507bd0], 0
sub esp, 4
jmp 0x41c53b
mov dword [esp + 4], 0x41b910
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x507bd0], eax
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x41c6f0
test eax, eax
je 0x41c69a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x41c6b7
call fcn.0041c260
test byte [ebx + 0x24], 4
je 0x41c730
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41c5cb
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x14], 0
sub esp, 4
mov dword [esp], esi
call fcn.0041b6e0
jmp 0x41c5d3
test eax, eax
je 0x41c730
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x18], 0
sub esp, 4
mov dword [esp], esi
call fcn.0041b6e0
mov dword [esp], edi
call fcn.0041b8a0
cmp eax, 1
je 0x41c746
mov dword [ebx + 0x38], 0xffffffff
jmp 0x41c53b
mov dword [esp], esi
call fcn.0041b6e0
jmp 0x41c70f
mov eax, ebx
call fcn.0041be60
jmp 0x41c5f9
call fcn.0041bbc0
lea esi, [esi]
nop
Function at 0x41c9e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [ebx]
test edx, edx
je 0x41cb00
cmp eax, 1
je 0x41ca34
mov eax, ebx
call fcn.0041b9a0
lea edi, [eax + 4]
mov esi, eax
mov dword [esp], edi
call fcn.0041b220
mov ebp, dword [ebx]
test ebp, ebp
je 0x41ca40
cmp ebp, 1
jne 0x41cad0
mov dword [esp], edi
call fcn.0041b560
test esi, esi
je 0x41ca34
mov eax, esi
call fcn.0041bcb0
add esp, 0x2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x14], 0x41bd70
mov dword [esp + 0x18], esi
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41cb38
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
lock or dword [esp], 0
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41cb20
lea edx, [esp + 0x14]
mov dword [eax + 0xc], edx
lock or dword [esp], 0
call dword [esp + 0x44]
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x41cb10
mov edx, dword [esp + 0x1c]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x41ca21
mov dword [esp], 2
call dword [0x4ba0bc]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x41ca21
add esp, 0x2c
mov eax, 0x16
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041c0e0
test eax, eax
jne 0x41cab8
jmp 0x4b3ea5
call fcn.0041c0e0
test eax, eax
jne 0x41ca92
jmp 0x4b3eb7
call fcn.0041c0e0
test eax, eax
jne 0x41ca6c
jmp 0x4b3eb0
mov eax, dword [esp + 0x1c]
mov dword [0], eax
ud2
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x14]
mov dword [0], eax
ud2

Function at 0x41cd90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41ce08
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.0041b8b0
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x41cde4
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x41cde4
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.0041b900
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041c0e0
mov ebx, eax
jmp 0x41cdbb
Function at 0x41ce20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41cf40
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.0041b8b0
cmp esi, dword [ebx + 0x28]
jae 0x41cea0
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.0041b900
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
lea ebp, [esi + 1]
lea eax, [ebp*4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x41cf4c
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x41cf4c
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
jmp 0x41ce68
call fcn.0041c0e0
mov ebx, eax
jmp 0x41ce55
mov dword [esp], edi
call fcn.0041b900
mov eax, 0xc
jmp 0x41ce90

Function at 0x41cfd0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41cff8
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.0041c0e0
test eax, eax
jne 0x41cfed
add esp, 0x1c
ret

Function at 0x41d060
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41d088
add eax, 0xc
add esp, 0x1c
ret
call fcn.0041c0e0
test eax, eax
jne 0x41d07d
jmp 0x41d080
Function at 0x41d0c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.0041c230
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x41d0e2
call fcn.0041c260
test byte [ebx + 0x20], 0x30
jne 0x41d0fc
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x41d13d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x41d17d
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x41d132
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x41d146
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.0041c000
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x41d13d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x41d191
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x41d15e

Function at 0x41d1a0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x507bfc]
test eax, eax
jne 0x41d1b0
xor eax, eax
ret
sub esp, 0x1c
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41d1f0
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x41d1e0
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x41d1d4
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x41d1d6
call fcn.0041c0e0
test eax, eax
jne 0x41d1cd
jmp 0x41d1d4

Function at 0x41d200
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41d240
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x41d230
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.0041c0e0
test eax, eax
jne 0x41d21d
add esp, 0x1c
ret
Function at 0x41d340
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41d3b0
test byte [ebx + 0x20], 0xc
jne 0x41d370
mov eax, dword [0x507bfc]
test eax, eax
jne 0x41d380
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.0041b220
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x41d3a2
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x41d3a2
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x41d3c1
mov dword [esp], esi
call fcn.0041b560
add esp, 0x14
pop ebx
pop esi
ret
call fcn.0041c0e0
mov ebx, eax
test eax, eax
jne 0x41d361
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41d3e1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.0041b560
call fcn.0041d250
nop
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41d470
mov dword [esp], eax
call fcn.0041af60
mov edi, eax
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x41d4b0
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov esi, edi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x41d510
test edi, edi
je 0x41d48a
call fcn.0041d340
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x41d4e8
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041b070
call fcn.0041d340
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41d500
call fcn.0041d340
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.0041d340
add esp, 0x10
xor eax, eax
pop ebx
pop esi
pop edi
ret
call fcn.0041c020
mov eax, dword [0x4ba0d0]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x41d442
call fcn.0041c0e0
mov ebx, eax
jmp 0x41d442
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x41d45e
call fcn.0041c0e0
jmp 0x41d48a
call fcn.0041c0e0
mov ebx, eax
jmp 0x41d43e
Function at 0x4224b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x80]
mov esi, 0x4bda11
push ebx
sub esp, 0x9c
mov eax, dword [0x4bda10]
mov dword [ebp - 0x81], eax
mov eax, dword [0x4bda75]
mov dword [ebp - 0x1c], eax
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 0x84]
and eax, 0xfffffff0
call fcn.0040b540
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x8c], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x8c]
mov byte [ebx + edx + 0x68], 0
mov dword [esp], ebx
call fcn.004b2c00
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x4bbc10], 0
jne 0x4225d6
mov byte [0x4bbc10], 1
call fcn.004b01a0
test eax, eax
je 0x4225a4
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call fcn.0040a430
mov dword [esp], 2
mov esi, dword [fcn.00419500]
mov edi, eax
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp], 2
test edx, edx
je 0x422594
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4bc725
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4b1e10
jmp 0x4b1e08
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x42255a
mov dword [esp], 2
call dword [0x4ba0bc]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
jmp 0x4b1e03
mov dword [esp], 2
call dword [0x4ba0bc]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
push ebx
mov ebx, ecx
sub esp, 0x18
mov dword [ecx], 0x4c59e0
call fcn.004a9b10
mov dword [esp], ebx
mov dword [esp + 4], 4
call fcn.004aff50
add esp, 0x18
pop ebx
ret
Function at 0x4794d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x479510
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4794e1
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x10034e5
Capabilities:
Create process on windows

Disassembly:
push 0xd0
push 0x10048e0
call fcn.01004228
mov dword [ebp - 0x88], 0x3f0
xor eax, eax
mov word [ebp - 0x80], ax
push 0x62
xor esi, esi
push esi
lea eax, [ebp - 0x7e]
push eax
call sub.msvcrt.dll_memset
mov dword [ebp - 0xe0], esi
push 0x40
push esi
lea eax, [ebp - 0xdc]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x9c], esi
xor eax, eax
lea edi, [ebp - 0x98]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], 0xffffffff
je 0x1003606
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x1003578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x88], eax
jmp 0x1003606
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1003567
xor edi, edi
inc edi
mov dword [ebp - 0x8c], edi
push dword [ebp + 0xc]
push 0x1001578
push 0x32
lea eax, [ebp - 0x80]
push eax
call fcn.01003486
add esp, 0x10
mov dword [ebp - 0xe0], 0x44
mov dword [ebp - 0xb4], edi
push 7
pop eax
mov word [ebp - 0xb0], ax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xe0]
push eax
push esi
push esi
push esi
push edi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 0x88], eax
cmp eax, esi
je 0x1003606
push dword [ebp - 0x98]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call edi
push dword [ebp - 0x9c]
call edi
mov dword [ebp - 4], 0xfffffffe
call fcn.01003622
mov eax, dword [ebp - 0x88]
call fcn.01004270
ret 8

Function at 0x1003966
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 0x10015cc
xor esi, esi
push esi
push esi
xor ebx, ebx
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
cmp edi, esi
je 0x10039a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10039a6
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
or eax, 0xffffffff
jmp 0x1003a44
cmp dword [0x10063d0], esi
je 0x10039d3
push esi
push 0xf0403
push 0x1006018
call sub.ntdll.dll_WinSqmStartSession
push 0x100159c
push 0x583
push eax
mov dword [0x10063d8], eax
call sub.ntdll.dll_WinSqmSetString
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__atoi64]
pop ecx
mov dword [0x1006398], eax
cmp eax, esi
je 0x1003a1e
push 0xa88
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x100607c], eax
cmp eax, esi
je 0x1003a1b
lea ecx, [ebp - 0x30]
call fcn.010031b9
push 0x3e9
push 0x3e8
lea ecx, [ebp - 0x30]
call fcn.0100372a
jmp 0x1003a1e
push 0xfffffffffffffffe
pop ebx
cmp edi, esi
je 0x1003a29
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [0x10063d0], esi
je 0x1003a42
push dword [0x10063d8]
call sub.ntdll.dll_WinSqmEndSession
mov dword [0x10063d8], esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1013000
Capabilities:
Encode data using xor

Disassembly:
push 0x5585d3
pop ebx
nop
nop
push 0x1013026
pop esi
nop
mov edx, 0x598
nop
nop
push dword [edx + esi]
xor dword [esp], ebx
pop dword [edx + esi]
nop
nop
sub edx, 4
nop
jne 0x1013016
nop
nop
nop
cmp edi, eax
push esp
add bl, dl
test dword [ebp], edx
rol dword [ebp - 0x3835feab], cl
push ebp
add bl, dl
jge 0x1013092
add byte [ebx], dh
js 0x1013096
add bl, dl
xor eax, 0x7a2c0057
stosb byte es:[edi], al
jmp edi
or byte [edi + 0xe], bl
dec edx
push ecx
test dword [ebp], edx
push cs
pop esp
push cs
dec edx
pop edi
test dword [ebp], edx
cld
pop esi
push cs
dec edx
inc ebp
test dword [ebp], edx
add byte [eax], al
add byte [eax], al
cwde
loopne 0x10130d8
outsb dx, byte [esi]
mov dh, 0xe9
xor bh, ch
loope 0x10130f2
insb byte es:[edi], dx
rol edx, cl
xor byte [edi + eax*4 - 0x20], dh
cmp byte [eax - 0x7d], dh
in al, 0x21
push 0x65128592
cmpsd dword [esi], dword es:[edi]
sal dword [eax], 1
insd dword es:[edi], dx
mov dword [0xb66c3cc3], eax
retf
push ebp
inc ebx
mov eax, dword [0xb67434e0]
ret
mov dh, 0xc3
cmp al, 0x6c
mov dh, 0x85
push es
cmpsd dword gs:[esi], dword es:[edi]
ret
Function at 0x405e0b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x405e1a
pop dword [ebp - 0x2c]
mov eax, 0x405e1a
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x8daac912
sub dword [ebp - 0x3c], 0x3f5883c7
mov dword [ebp - 0x38], 0x5cee200e
add dword [ebp - 0x38], 0xd5452c37
mov dword [ebp - 0x34], 0x1f2dade
sub dword [ebp - 0x34], 0xb5a696b0
mov dword [ebp - 0x30], 0x77d4230b
sub dword [ebp - 0x30], 0x77d4230b
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x4791f5c0
add dword [ebp - 0x3c], 0x2ce07396
mov dword [ebp - 0x38], 0xc6a7d045
add dword [ebp - 0x38], 0x7ac49130
mov dword [ebp - 0x34], 0x887f93ad
add dword [ebp - 0x34], 0xdaefd8bf
mov dword [ebp - 0x30], 0x21abaa41
sub dword [ebp - 0x30], 0x21abaa41
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x19403b32
add eax, 0xe70034ee
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x367d8
push 0
call eax
mov ecx, 0x4536ebd4
sub ecx, 0x4536a8d4
mov edi, eax
mov esi, 0x40c800
add esi, dword [ebp - 0x2c]
mov ebx, 0xd5a835ff
mov dword [ebp - 0x14], 0x1d1e4
mov edx, dword [esi]
mov dword [ebp - 0x14], 0x8a067be5
sub edx, ebx
xor dword [ebp - 0xc], 0xc7c08a30
mov dword [edi], edx
sub dword [ebp - 0x14], esi
add edi, 4
add esi, 4
loop 0x405f26
add eax, 0x1c5d3104
add eax, 0xe3a3cdcf
mov ebx, eax
add eax, 0xea208f41
sub eax, 0xea208f3c
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x402290
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x4022f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x4023dd
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402324
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x4023d6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x402310
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x40241a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4023fa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x4023cf
sub eax, 0x40
and eax, 0xffffffbf
je 0x4023cf
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x4023e4
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40232e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]