joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9b3b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a9b73
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a7b86
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a7b5e
jmp 0x4a9b7f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ab3b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ab3f2
call fcn.004b18e4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ab3f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ab3e9
xor eax, eax
jmp 0x4ab3fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ab400
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b1e14
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4b1e42
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b1e60
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004b1d7a
jmp 0x4b1e60
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4b1e60
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004b1d7a
test edi, edi
mov eax, edi
jne 0x4b1e4a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4b4696
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4b46be
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4b46cf
push 2
call edi
test ax, ax
jge 0x4b46cf
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004a9170
cmp dword [esi + 0x30], ebx
jne 0x4b47a9
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, pe_nt_image_headers32
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004a9170
cmp eax, dword [esp + 0x34]
jne 0x4b47a9
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4b4745
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4b478a
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4b47a9
cmp eax, 0x205
je 0x4b47a9
cmp eax, 0x201
je 0x4b47a9
cmp eax, 0x204
je 0x4b47a9
cmp eax, ebx
jne 0x4b4770
cmp dword [esp + 0x1c], 0x1b
je 0x4b47a9
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x51c9cc]
jbe 0x4b479f
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4b4702
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x40b841
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412da8
cmp edx, dword [eax]
je 0x40b863
add eax, 8
inc ecx
cmp eax, 0x412e38
jl 0x40b854
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412da8]
jne 0x40b991
mov eax, dword [0x4133f0]
cmp eax, 1
je 0x40b96b
test eax, eax
jne 0x40b894
cmp dword [0x412948], 1
je 0x40b96b
cmp edx, 0xfc
je 0x40b991
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x40b8cb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a510
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406930
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b90e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406930
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4105e8
push edi
call section..text
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a510
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a520
lea eax, [ebp - 0xa0]
push 0x4105c8
push eax
call fcn.0040a520
push dword [esi + 0x412dac]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a520
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d314
add esp, 0x2c
pop edi
jmp 0x40b991
lea eax, [ebp + 8]
lea esi, [esi + 0x412dac]
push 0
push eax
push dword [esi]
call fcn.00406930
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x4066be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x4066cd
pop dword [ebp - 0x18]
mov eax, 0x6c10ca3e
add eax, 0x942f9c8f
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x363fe
push 0
mov eax, 0x91ffdc7c
sub eax, 0x91befb5c
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xc0700219
add ecx, 0x3f903990
mov edi, eax
mov esi, 0x417800
add esi, dword [ebp - 0x18]
mov ebx, 0x3aa0699c
add ebx, 0x175f2ef8
add dword [ebp - 8], ebx
mov edx, dword [esi]
add dword [ebp - 4], esi
xor edx, ebx
mov dword [edi], edx
sub dword [ebp - 0xc], edi
add edi, 4
add esi, 0x2a63ab6
sub esi, 0x2a63ab2
loop 0x406726
add eax, 0x392b9cbb
sub eax, 0x392abb44
mov ebx, eax
add eax, 0x4f64652c
sub eax, 0x4f646527
mov ecx, 0xb1946e51
sub ecx, 0xb1546e51
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x10001250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10001420
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000132d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000129a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001a004]
ja 0x1000129a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000126a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10007990
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100012bf
jmp 0x1000132d
cmp dword [ebp - 0x14], 0x10000
jne 0x10001313
cmp dword [ebp - 0x18], 0x10000
jb 0x10001313
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100012f6
mov eax, dword [ebp - 8]
jmp 0x1000132f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10001306
xor eax, eax
jmp 0x1000132f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10001328
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10001420
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000126a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10001340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10001450
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10001415
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10001385
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001a004]
ja 0x10001385
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10001355
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10007990
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100013aa
jmp 0x10001415
cmp dword [ebp - 0x14], 0x10000
jne 0x100013fe
cmp dword [ebp - 0x18], 0x10000
jb 0x100013fe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100013e1
mov eax, dword [ebp - 8]
jmp 0x10001417
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100013f1
xor eax, eax
jmp 0x10001417
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10001410
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10001450
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001355
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001480
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10001870
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1001a990], 0
jne 0x100014bd
cmp dword [0x1001a98c], 0
je 0x100014bd
mov eax, dword [0x1001a98c]
mov dword [0x1001a990], eax
cmp dword [0x1001a990], 0
je 0x1000153a
mov ecx, dword [0x1001a990]
cmp dword [ecx + 8], 0
je 0x1000153a
mov edx, dword [0x1001a990]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000153a
mov ecx, dword [0x1001a990]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000153a
mov eax, dword [0x1001a990]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10001509
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10001510
xor eax, eax
jmp 0x10001659
mov ecx, dword [0x1001a990]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10007990
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10001659
mov edx, dword [0x1001a98c]
mov dword [0x1001a990], edx
jmp 0x10001556
mov eax, dword [0x1001a990]
mov ecx, dword [eax + 4]
mov dword [0x1001a990], ecx
cmp dword [0x1001a990], 0
je 0x10001596
cmp dword [0x1001a990], 0
je 0x10001594
mov edx, dword [0x1001a990]
cmp dword [edx + 8], 0
je 0x10001594
mov eax, dword [0x1001a990]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10001594
mov edx, dword [0x1001a990]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10001594
jmp 0x100014ee
jmp 0x10001548
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10001660
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10001657
mov eax, dword [ebp - 0x18]
mov dword [0x1001a990], eax
mov ecx, dword [0x1001a990]
mov dword [ecx], 0x52727464
mov edx, dword [0x1001a990]
mov dword [edx + 8], 0
mov eax, dword [0x1001a990]
mov ecx, dword [0x1001a98c]
mov dword [eax + 4], ecx
mov edx, dword [0x1001a990]
mov dword [0x1001a98c], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1001a990]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10001627
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10001647
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000161e
mov eax, dword [0x1001a990]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100014ee
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100023a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001a98c]
mov dword [ebp - 4], eax
jmp 0x100023b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100023e0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100023de
call sub.KERNEL32.dll_GetLastError
jmp 0x100023e2
jmp 0x100023b0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10002a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1001a99c], eax
je 0x10002a34
mov eax, 0x10dd
jmp 0x10002bdc
cmp dword [0x1001a9a0], 0
je 0x10002a47
mov eax, dword [0x1001a9a0]
jmp 0x10002bdc
cmp dword [ebp + 0xc], 0
jne 0x10002a57
mov eax, 0x57
jmp 0x10002bdc
cmp dword [ebp + 8], 0
jne 0x10002a67
mov eax, 6
jmp 0x10002bdc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10002a90
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1001a9a0], ecx
mov edx, dword [ebp + 8]
mov dword [0x1001a9a4], edx
mov eax, dword [ebp - 8]
jmp 0x10002bdc
push 0x18
call fcn.10006959
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10002aeb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1001a9a0], ecx
cmp dword [ebp - 4], 0
je 0x10002ada
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10006989
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1001a9a4], ecx
mov eax, dword [ebp - 8]
jmp 0x10002bdc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100029f0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100029f0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10002b2b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10002b47
mov dword [ebp - 8], 9
cmp dword [0x1001a994], 0
je 0x10002b42
jmp 0x10002ab9
jmp 0x10002ab0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10002b6e
mov dword [ebp - 8], 9
cmp dword [0x1001a994], 0
je 0x10002b69
jmp 0x10002ab9
jmp 0x10002ab0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10002b99
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10002ab0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1001a9ac]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1001a9ac], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10002bf0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1001a99c], eax
je 0x10002c0d
mov eax, 0x10dd
jmp 0x10002cf0
mov eax, dword [0x1001a9ac]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10002c8c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10002c68
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10002c68
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10001900
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10006989
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10002c15
mov dword [0x1001a9ac], 0
call fcn.100021e0
mov ecx, dword [0x1001a9a8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10002cda
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10006989
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10002ca4
mov dword [0x1001a9a8], 0
mov dword [0x1001a99c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100031d0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1001a9a0], 0
je 0x100031e9
mov eax, dword [0x1001a9a0]
jmp 0x10003288
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x100031fa
xor eax, eax
jmp 0x10003288
push 8
call fcn.10006959
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10003252
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000323b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10006989
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1001a9a0], eax
mov dword [0x1001a9a4], 0
mov eax, dword [ebp - 8]
jmp 0x10003288
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000326a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000321a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1001a9a8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1001a9a8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x100040a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1001a040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf8
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.10007990
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x100040dd
push 0x57
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x10004191
push 0x1c
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.10007990
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_VirtualQueryEx
test eax, eax
jne 0x1000410b
xor eax, eax
jmp 0x10004191
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x10004128
xor eax, eax
jmp 0x10004191
movzx eax, word [ebp - 0x44]
cmp eax, 0x5a4d
jne 0x10004141
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x58]
ja 0x10004141
cmp dword [ebp - 8], 0x40
jae 0x1000414f
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x10004191
push 0
push 0xf8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x10004172
xor eax, eax
jmp 0x10004191
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
je 0x1000418b
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x10004191
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10006997
mov esp, ebp
pop ebp
ret
Function at 0x10009e3f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10009e7e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10009e7e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10009e7e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10009e7e
cmp dword [ecx + 0x74], 0xe
jbe 0x10009e7e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000cf71
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000d00e
push ebx
push esi
call fcn.1000cf3a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000cece
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000cfbb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d00d
push edi
push eax
call fcn.1000ac80
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000cfdb
call fcn.1000ac46
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d00c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000cece
add esp, 0x20
test eax, eax
jne 0x1000cffa
push edi
call fcn.1000ac46
jmp 0x1000d002
push ebx
call fcn.1000ac46
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000d27b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014d10
push 0x10014d08
push str.FlsAlloc
push 0x1f
call fcn.1000d197
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d2af
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013158]
call esi
jmp 0x1000d2b5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000d2f9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014d20
push 0x10014d18
push str.FlsGetValue
push 0x21
call fcn.1000d197
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d330
push dword [ebp + 8]
mov ecx, esi
call dword [0x10013158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000d338
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014d28
push 0x10014d20
push str.FlsSetValue
push 0x22
call fcn.1000d197
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000d372
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10013158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]