joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ed30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x46ed5b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x46ed7f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x46ed9a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x470c50
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x470c6a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x470c6a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x472840
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.00474230
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x472873
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 4]
push 0x40
mov dword [ecx + 0x25c], eax
push fcn.0045a1d4
mov edx, dword [ebp - 4]
push edx
call fcn.00470bf0
push esi
push eax
call fcn.0045a250
add esp, 0x14
test eax, eax
je 0x4728af
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00474450
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00470cb0
mov edi, dword [ebp + 8]
add esp, 0x20
cmp edi, esi
mov ebx, 0x20000
je 0x472919
push 0
call fcn.004713e0
mov dl, byte [esi + edi]
mov cl, byte [eax + esi]
add esp, 4
cmp dl, cl
je 0x472907
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
or ecx, ebx
mov dword [eax + 0x70], ecx
push 0
call fcn.004713e0
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x4728e8
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x70]
test ebx, eax
je 0x472991
test edi, edi
je 0x47298a
mov bl, byte [edi]
push 0
call fcn.004713e0
mov cl, byte [eax]
add esp, 4
cmp bl, cl
jne 0x47295d
cmp bl, 0x31
jne 0x472952
push 0
call fcn.004713e0
mov dl, byte [edi + 2]
mov cl, byte [eax + 2]
add esp, 4
cmp dl, cl
jne 0x47295d
cmp byte [edi], 0x30
jne 0x472991
cmp byte [edi + 2], 0x39
jge 0x472991
test edi, edi
je 0x47298a
push 0
call fcn.004713e0
push eax
push edi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.0045a7e5
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00470a10
add esp, 0x20
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4729df
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00474420
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x4729d8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x472a1c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004743d0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push ecx
mov dword [eax + 0xb0], 0
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004742d0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.004741b0
mov edx, dword [ebp - 4]
push edx
call fcn.00472f40
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47faf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47fb20
push esi
call fcn.0047fff0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x47fb19
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x47fba3
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x47fb8f
mov eax, dword [esi + 8]
test eax, eax
je 0x47fb44
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47fb8b
cmp eax, 2
je 0x47fb8f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47fb37
cmp eax, 3
je 0x47fb6a
cmp eax, 1
jne 0x47fb37
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47fb37
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47fb37
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0047fbd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47fbc3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0047fbd0
add esp, 4
pop esi
ret
Function at 0x4b06df
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b0717
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004af6e4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004af6bb
jmp 0x4b0723
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4b2027
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 0x4b2069
call fcn.004c1e7d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4b2069
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b2060
xor eax, eax
jmp 0x4b2071
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b2077
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b95b5
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4cacfc
call fcn.00456dcc
push ecx
push ecx
push esi
push 0x10
call fcn.004af7fa
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4b9602
mov ecx, esi
call fcn.004b47e1
mov eax, dword [0x4fc9e0]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004af3bd
jmp 0x4b9604
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4e6d18
push eax
mov dword [ebp - 0x10], esi
call fcn.0045842f
pop esi
Function at 0x9e5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009e51a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9e507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e506a
add dl, dl
jne 0x9e5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e50dc
xor eax, eax
add dl, dl
jne 0x9e5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9e517d
add dl, dl
jne 0x9e50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9e50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9e5075
mov eax, 1
add dl, dl
jne 0x9e50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9e50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e50e1
sub eax, ebx
mov ebx, 1
jne 0x9e5128
mov ecx, 1
add dl, dl
jne 0x9e510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9e5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9e513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9e514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9e5136
cmp eax, 0x7d00
jae 0x9e516d
cmp eax, 0x500
jb 0x9e5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e5075
cmp eax, 0x7f
ja 0x9e5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9e5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9e519e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9e5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100011bf
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1000fae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100011ea
cmp dword [esp + 0xc], 0
je 0x100011ea
mov ecx, dword [esp + 4]
mov dword [eax + 0xd8], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0xc4], ecx
ret 0xc

Function at 0x100011ed
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1000fae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10001218
cmp dword [esp + 0xc], 0
je 0x10001218
mov ecx, dword [esp + 4]
mov dword [eax + 0xdc], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 0xc8], ecx
ret 0xc

Function at 0x1000124d
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1000fae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100012c6
push ebx
push ebp
push edi
push 0x7c
push dword [esp + 0x18]
lea eax, [esi + 0x38]
push eax
call fcn.10002e20
mov ebp, dword [sym.imp.GDI32.dll_DeleteObject]
lea edi, [esi + 0xb8]
mov eax, dword [edi]
add esp, 0xc
test eax, eax
je 0x1000128a
push eax
call ebp
push dword [esi + 0x4c]
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
call ebx
mov dword [edi], eax
lea edi, [esi + 0xbc]
mov eax, dword [edi]
test eax, eax
je 0x100012a6
push eax
call ebp
push dword [esi + 0x6c]
call ebx
mov dword [edi], eax
lea edi, [esi + 0xc0]
mov eax, dword [edi]
test eax, eax
je 0x100012bc
push eax
call ebp
push dword [esi + 0x74]
call ebx
mov dword [edi], eax
pop edi
pop ebp
pop ebx
pop esi
ret 4

Function at 0x100012ca
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x1000fae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10001390
mov ecx, dword [ebp + 8]
cmp ecx, 0x1f
jg 0x1000134a
je 0x10001342
dec ecx
dec ecx
je 0x1000133a
dec ecx
je 0x10001332
dec ecx
je 0x1000132a
sub ecx, 3
je 0x10001323
dec ecx
je 0x1000131b
sub ecx, 7
je 0x10001313
sub ecx, 0xf
jne 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x34], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x24], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x30], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
jmp 0x10001390
sub ecx, 0x20
je 0x1000138a
dec ecx
je 0x10001382
sub ecx, 0x12
je 0x1000137a
dec ecx
je 0x10001372
dec ecx
je 0x1000136a
sub ecx, 0x27
jne 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x10], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x20], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x28], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0xc], ecx
jmp 0x10001390
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
pop ebp
ret 8
Function at 0x100013c1
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x1000fae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x100013ea
and dword [eax + 0xd0], 0
push 0x20
add eax, 0xe8
push 0
push eax
call fcn.100025f2
add esp, 0xc
ret

Function at 0x10001fd6
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x1000fae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10001120
push ebx
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edi
lea edi, [esi + 0xb8]
mov eax, dword [edi]
test eax, eax
je 0x100010f7
push eax
call ebx
and dword [edi], 0
lea edi, [esi + 0xbc]
mov eax, dword [edi]
test eax, eax
je 0x10001109
push eax
call ebx
and dword [edi], 0
add esi, 0xc0
mov eax, dword [esi]
test eax, eax
je 0x1000111b
push eax
call ebx
and dword [esi], 0
pop edi
pop ebx
pop esi
ret
cmp dword [0x1000fb10], 0x711387b2
jne 0x10001ff1
call sym.SSAPIHOOK.dll_Ordinal_7
call sym.SSAPIHOOK.dll_Ordinal_5
jmp 0x100010cd
ret
Function at 0x100024c5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, 0x1000fac8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 0x711387b2
xor esi, esi
cmp dword [0x1000fb10], eax
je 0x1000259a
mov dword [0x1000fb10], eax
mov eax, dword [esp + 0x10]
push eax
mov dword [0x1000fb3c], 0x77ff
mov dword [0x1000fb1c], eax
mov dword [0x1000fb28], esi
mov dword [0x1000fb60], esi
mov dword [0x1000faf0], esi
mov dword [0x1000fb40], esi
mov dword [0x1000fb48], esi
mov dword [0x1000fb0c], esi
mov dword [0x1000fb54], esi
mov dword [0x1000fb58], esi
mov dword [0x1000fb00], esi
mov dword [0x1000fb44], esi
mov dword [0x1000fb04], esi
mov dword [0x1000faf4], esi
mov dword [0x1000fb38], esi
mov dword [0x1000fb2c], esi
mov dword [0x1000fb50], esi
mov dword [0x1000fb14], esi
mov dword [0x1000fafc], esi
mov dword [0x1000fb4c], esi
mov dword [0x1000fb24], esi
mov dword [0x1000fb08], esi
mov dword [0x1000faf8], esi
mov dword [0x1000fb34], esi
mov dword [0x1000fb20], esi
mov dword [0x1000fb5c], esi
call fcn.10001ff2
mov dword [0x1000fb30], eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [0x1000fae0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
cmp edi, esi
jne 0x100025e3
mov ebx, 0x108
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
jne 0x100025cb
xor eax, eax
jmp 0x100025ec
push ebx
push esi
push edi
call fcn.100025f2
add esp, 0xc
push edi
push dword [0x1000fae0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
mov dword [edi + 0xd0], esi
inc eax
pop edi
pop esi
pop ebx
ret 4
Function at 0x10002701
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
and dword [ebp - 4], 0
cmp dword [0x1000fb68], 0x18
jae 0x100027f0
mov eax, dword [ebp + 8]
push esi
lea esi, [eax + ecx]
mov eax, 0x80000000
cmp esi, eax
jae 0x1000272d
xor esi, esi
inc esi
jmp 0x10002733
sub esi, 0x7fff0000
mov edx, dword [ebp + 0x10]
push ebx
lea ebx, [edx + ecx]
cmp ebx, eax
jae 0x10002746
add ebx, 0x7ff80000
jmp 0x1000274b
mov ebx, 0xfff80000
and dword [ebp - 0x44], 0
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
pop edi
cmp esi, ebx
jae 0x100027ee
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100027c4
cmp dword [ebp - 0x10], 0x10000
jne 0x100027b7
cmp dword [ebp - 0x14], 0x6c
jb 0x100027b7
mov ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x14], ecx
jb 0x100027b7
lea eax, [ecx + esi - 1]
xor edx, edx
div ecx
push 0x20
push 0x3000
push 0x6c
imul eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100027ca
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
cmp esi, ebx
jb 0x1000276d
cmp dword [ebp - 4], 0
je 0x100027ee
xor eax, eax
cmp dword [eax*4 + 0x1000fb90], 0
je 0x100027de
inc eax
cmp eax, 0x18
jb 0x100027cc
jmp 0x100027ee
mov ecx, dword [ebp - 4]
inc dword [0x1000fb68]
mov dword [eax*4 + 0x1000fb90], ecx
pop ebx
pop esi
mov eax, dword [ebp - 4]
leave
ret

Function at 0x1000282a
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
push ebx
push esi
push edi
push dword [ebp + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x100028d9
test esi, esi
je 0x100028d9
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x100028d0
mov edi, dword [sym.imp.KERNEL32.dll_GetThreadContext]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2d0]
push eax
push esi
mov dword [ebp - 0x2d0], 0x10001
call edi
test eax, eax
je 0x100028d9
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x100028d9
mov ecx, dword [ebp + 0x10]
add eax, ecx
cmp dword [ebp - 0x218], eax
jae 0x100028d9
push esi
call ebx
cmp dword [ebp - 4], 3
jge 0x100028d0
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
inc dword [ebp - 4]
lea eax, [ebp - 0x2d0]
push eax
push esi
call edi
test eax, eax
jne 0x1000288d
jmp 0x100028d9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100028e0
Capabilities:
Resume thread

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov ebp, eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push eax
call ebx
xor edi, edi
cmp dword [0x1000fb8c], edi
jbe 0x10002931
mov eax, dword [0x1000fb88]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x1000fb88]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [0x1000fb8c]
jb 0x1000290c
push dword [0x1000fb88]
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [0x1000fb88], 0
and dword [0x1000fb8c], 0
push ebp
call esi
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10002b49
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x6c
push ebx
mov ebx, dword [eax]
push esi
push edi
mov edi, 0x347182d1
xor esi, esi
cmp dword [0x1000fb84], edi
je 0x10002b71
call fcn.10002622
mov dword [0x1000fb84], edi
push 0x1000fb6c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, ebx
call fcn.10002696
mov edi, eax
mov eax, dword [ebp + 0xc]
call fcn.10002696
mov dword [ebp + 0xc], eax
xor eax, eax
push 0x50
push eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push eax
call fcn.100025f2
push 5
push edi
lea eax, [ebp - 0x6c]
call fcn.10002aaf
mov ebx, eax
add esp, 0x14
cmp ebx, 5
jb 0x10002cfe
push ebx
push edi
call fcn.10002956
push dword [ebp - 0x60]
mov ecx, edi
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call fcn.10002701
mov esi, eax
add esp, 0x18
test esi, esi
je 0x10002cf9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push ebx
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10002cde
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x6c
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x10002cc1
and dword [ebp - 0x14], 0
lea ecx, [esi + 0x2c]
test ebx, ebx
jbe 0x10002c4c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edi
sub dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov al, byte [eax + ecx]
mov byte [ecx], al
mov byte [esi + edx + 0x4c], al
inc edx
inc ecx
cmp edx, ebx
jb 0x10002c3a
lea ecx, [ebx + edi]
lea eax, [esi + ebx + 0x2c]
call fcn.100026c8
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
jae 0x10002c65
mov eax, edi
sub eax, ecx
jmp 0x10002c69
mov eax, ecx
sub eax, edi
cmp eax, 0x7fff0000
jbe 0x10002c8e
lea eax, [esi + 0xc]
call fcn.100026c8
sub eax, esi
sub eax, 0xc
push eax
lea eax, [esi + 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea ecx, [esi + 0xc]
mov eax, edi
call fcn.100026c8
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
push ebx
lea eax, [esi + 0x2c]
push eax
push dword [ebp - 4]
mov dword [esi + 4], ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x6c
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [esi], 0
je 0x10002ced
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x2c]
mov dword [ecx], eax
jmp 0x10002cf9
push 1
mov ecx, esi
call fcn.100027f5
pop ecx
xor esi, esi
call fcn.100028e0
push 0x1000fb6c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
pop edi
test esi, esi
pop esi
setne al
pop ebx
leave
ret