joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019470
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100780f0]
jne 0x1001947a
repz ret
jmp fcn.10029310

Function at 0x1001b3c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
setne al
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001b3f6
push str._path___NULL_
push 0
push 0x50
push str.f:_sp_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.10019ef0
add esp, 0x14
cmp eax, 1
jne 0x1001b3f6
int3
cmp dword [ebp - 8], 0
jne 0x1001b437
call fcn.1001d030
mov dword [eax], 0
call fcn.1001d000
mov dword [eax], 0x16
push 0
push 0x50
push str.f:_sp_vctoolscrt_bld_self_x86crt_src_access.c
push str._waccess_s
push str._path___NULL_
call fcn.10021da0
add esp, 0x14
mov eax, 0x16
jmp 0x1001b50f
mov edx, dword [ebp + 0xc]
and edx, 0xfffffff9
neg edx
sbb edx, edx
add edx, 1
mov dword [ebp - 0xc], edx
jne 0x1001b467
push str.__amode___6____0_
push 0
push 0x51
push str.f:_sp_vctoolscrt_bld_self_x86crt_src_access.c
push 2
call fcn.10019ef0
add esp, 0x14
cmp eax, 1
jne 0x1001b467
int3
cmp dword [ebp - 0xc], 0
jne 0x1001b4a5
call fcn.1001d030
mov dword [eax], 0
call fcn.1001d000
mov dword [eax], 0x16
push 0
push 0x51
push str.f:_sp_vctoolscrt_bld_self_x86crt_src_access.c
push str._waccess_s
push str.__amode___6____0_
call fcn.10021da0
add esp, 0x14
mov eax, 0x16
jmp 0x1001b50f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1001b4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1001cdf0
add esp, 4
call fcn.1001d000
mov eax, dword [eax]
jmp 0x1001b50f
mov edx, dword [ebp - 4]
and edx, 0x10
je 0x1001b4dc
xor eax, eax
jmp 0x1001b50f
mov eax, dword [ebp - 4]
and eax, 1
je 0x1001b50d
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x1001b50d
call fcn.1001d030
mov dword [eax], 5
call fcn.1001d000
mov dword [eax], 0xd
call fcn.1001d000
mov eax, dword [eax]
jmp 0x1001b50f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10028680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10078a54]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100286bb
mov ecx, dword [0x10079db0]
push ecx
call fcn.100285a0
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x10078a54]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x1f8e1bcb
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x71aa7040
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x405690
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x13c
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x3a0], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x3a4], esi
call fcn.004523e0
push 0x257
lea eax, [ebp - 0x25f]
mov byte [ebp - 0x260], 0
push 0
push eax
call fcn.004523e0
add esp, 0x18
mov edx, esi
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x4056f0
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405700
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405720
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x482a78]
mov byte [ecx + 4], al
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4058bd
mov esi, dword [ebp - 0x3a4]
mov ecx, esi
call fcn.004054c0
lea eax, [ebp - 0x3a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4058bd
jmp 0x405780
mov ecx, 0x482a18
lea eax, [ebp - 0x374]
jmp 0x405790
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4057b0
test dl, dl
je 0x4057ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4057b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405790
xor eax, eax
jmp 0x4057b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4058a7
mov eax, 0x482a7c
lea ecx, [ebp - 0x374]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4057e8
test dl, dl
je 0x4057e4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4057e8
add ecx, 2
add eax, 2
test dl, dl
jne 0x4057c8
xor eax, eax
jmp 0x4057ed
sbb eax, eax
or eax, 1
test eax, eax
je 0x4058a7
test byte [ebp - 0x3a0], 0x10
je 0x4058a7
push 0x258
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.004523e0
add esp, 0xc
mov edx, esi
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x405820
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405830
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x260]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x405850
mov ax, word [0x482998]
lea edx, [ebp - 0x374]
mov word [edi], ax
mov esi, edx
jmp 0x405870
mov al, byte [edx]
inc edx
test al, al
jne 0x405870
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405880
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
call fcn.004054c0
mov esi, dword [ebp - 0x3a4]
lea eax, [ebp - 0x3a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405780
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004516e1
mov esp, ebp
pop ebp
ret
Function at 0x4058d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x13c
lea eax, [ebp - 0x39c]
mov dword [ebp - 0x3a0], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x3a4], esi
call fcn.004523e0
add esp, 0xc
mov byte [ebp - 0x260], 0
lea eax, [ebp - 0x25f]
push 0x257
push 0
push eax
call fcn.004523e0
add esp, 0xc
mov edx, esi
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x405930
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405940
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x405960
mov eax, dword [str..]
mov dword [ecx], eax
mov al, byte [0x482a78]
mov byte [ecx + 4], al
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405afd
mov esi, dword [ebp - 0x3a4]
mov ecx, esi
call fcn.004054c0
lea eax, [ebp - 0x3a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x405afd
jmp 0x4059c0
mov ecx, 0x482a18
lea eax, [ebp - 0x374]
jmp 0x4059d0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4059f0
test dl, dl
je 0x4059ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4059f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4059d0
xor eax, eax
jmp 0x4059f5
sbb eax, eax
or eax, 1
test eax, eax
je 0x405ae7
mov eax, 0x482a7c
lea ecx, [ebp - 0x374]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x405a28
test dl, dl
je 0x405a24
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x405a28
add ecx, 2
add eax, 2
test dl, dl
jne 0x405a08
xor eax, eax
jmp 0x405a2d
sbb eax, eax
or eax, 1
test eax, eax
je 0x405ae7
test byte [ebp - 0x3a0], 0x10
je 0x405ae7
push 0x258
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.004523e0
add esp, 0xc
mov edx, esi
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x405a60
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405a70
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x260]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x405a90
mov ax, word [0x482998]
lea edx, [ebp - 0x374]
mov word [edi], ax
mov esi, edx
jmp 0x405ab0
mov al, byte [edx]
inc edx
test al, al
jne 0x405ab0
lea edi, [ebp - 0x260]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405ac0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x260]
call fcn.00405690
mov esi, dword [ebp - 0x3a4]
lea eax, [ebp - 0x3a0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4059c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004516e1
mov esp, ebp
pop ebp
ret
Function at 0x40b1b0
Capabilities:
Extract resource via kernel32 functions
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.TEXT
push 0x84
push 0
mov ebx, ecx
mov dword [ebp - 0x260], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40b235
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40b235
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40b235
cmp eax, 0x2000
ja 0x40b235
push eax
push esi
push ebx
call fcn.00451d90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
push 0x257
lea eax, [ebp - 0x25b]
mov byte [ebp - 0x25c], 0
push 0
push eax
call fcn.004523e0
add esp, 0xc
lea eax, [ebp - 0x25c]
push 0x258
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x25c]
dec ecx
lea ecx, [ecx]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40b270
mov eax, dword [str..json]
push 0
push 0x80
push 3
mov dword [ecx], eax
mov ax, word [0x483340]
push 0
push 0
mov word [ecx + 4], ax
lea eax, [ebp - 0x25c]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b2c4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x260]
push eax
push 0x2000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp eax, dword [ebp - 0x260]
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.004516e1
mov esp, ebp
pop ebp
ret

Function at 0x40b6b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4a4300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xff
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], 0
push 0
push eax
mov esi, ecx
call fcn.004523e0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x40b70b
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004516e1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0
push eax
lea eax, [ebp - 0x128]
xorps xmm0, xmm0
push eax
push 0
lea eax, [ebp - 0x108]
movdqu xmmword [ebp - 0x128], xmm0
push eax
movdqu xmmword [ebp - 0x118], xmm0
mov dword [ebp - 0x124], 2
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40b6fa
mov eax, dword [ebp - 0x12c]
push 0x10
mov eax, dword [eax + 0x18]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push esi
call fcn.00456d90
add esp, 0xc
push dword [ebp - 0x12c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004516e1
mov esp, ebp
pop ebp
ret
Function at 0x401a90
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x415014]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
push 0x34
push str.Destroyer.exe
push str.Do_You_Want_to_Destroy_Windows_
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
cmp eax, 7
jne 0x401ac8
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push section..text
push 0
push 0
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x4012b0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0x401060
push 0
push 0
mov edi, eax
call ebx
mov esi, eax
call fcn.004017b0
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x401790
push 0
push 0
call esi
push 0x1388
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x401420
push 0
push 0
call esi
mov esi, eax
call fcn.00401920
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call ebx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.NtRaiseHardError
push str.ntdll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov ebx, eax
push str.RtlAdjustPrivilege
push str.ntdll
call edi
push eax
call esi
lea ecx, [esp + 0xf]
push ecx
push 0
push 1
push 0x13
call eax
lea eax, [esp + 0x10]
push eax
push 6
push 0
push 0
push 0
push 0xc0000053
call ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401e45
mov esp, ebp
pop ebp
ret

Function at 0x406770
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00406430
Function at 0x10001290
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1000129b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.100012b0
Function at 0x10007870
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10080040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ecx
xor ecx, ecx
mov dword [ebp - 0x14], eax
push esi
mov esi, edx
mov word [ebx], cx
test eax, eax
je 0x100079b8
test esi, esi
je 0x100079b8
push edi
push 0xf0000000
push 1
xor edi, edi
mov dword [ebp - 0xc], ecx
push edi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10007987
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0x8003
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10007987
push edi
push esi
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x10007987
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
push edi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x10007987
push dword [ebp - 0x10]
call fcn.1001219a
mov esi, eax
add esp, 4
test esi, esi
je 0x10007987
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1000797e
mov eax, dword [ebp - 0x10]
cmp eax, 0x10
jb 0x1000794e
movups xmm0, xmmword [esi]
movups xmmword [ebx], xmm0
jmp 0x10007978
push eax
push esi
push ebx
call fcn.1000d2c0
mov edx, dword [ebp - 0x10]
mov ecx, 0x20
add edx, edx
xor eax, eax
sub ecx, edx
add esp, 0xc
shr ecx, 1
shr ecx, 1
lea edi, [edx + ebx]
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0x14]
xor eax, eax
mov word [ebx + 0x20], ax
push esi
call fcn.1001217f
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x10007995
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x100079a5
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000a681
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a681
mov esp, ebp
pop ebp
ret
Function at 0x10008620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ecx + 0x3c]
mov eax, 0x20b
add ebx, ecx
mov dword [ebp - 0xc], ecx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], ebx
movzx edx, word [ebx + 0x18]
cmp dx, ax
mov esi, dword [edi]
sete al
mov byte [edi + 6], al
movzx ecx, word [ebx + 0x14]
movzx eax, word [ebx + 6]
mov dword [ebp - 8], ecx
mov ecx, dword [ebx + 0x54]
mov ebx, eax
mov dword [ebp - 4], ecx
mov ecx, 0x20b
push dword [ebp - 4]
cmp dx, cx
mov ecx, dword [ebp - 0xc]
push ecx
push esi
jne 0x100086b0
call fcn.1000d2c0
mov edx, dword [esi + 0x3c]
add esp, 0xc
add edx, esi
movzx eax, word [edx + 0x14]
add eax, 0x18
mov dword [edi + 0x10], esi
add eax, edx
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], edx
mov eax, dword [edx + 0x30]
mov ecx, dword [edx + 0x34]
mov dword [edi + 8], eax
lea eax, [edx + 0x88]
mov dword [edi + 0xc], ecx
mov dword [edi + 0x20], eax
movzx eax, word [edx + 6]
jmp 0x100086ed
call fcn.1000d2c0
mov ecx, dword [esi + 0x3c]
add esp, 0xc
add ecx, esi
movzx eax, word [ecx + 0x14]
add eax, 0x18
mov dword [edi + 0x10], esi
add eax, ecx
mov dword [edi + 0x14], ecx
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], 0
mov eax, dword [ecx + 0x34]
mov dword [edi + 8], eax
lea eax, [ecx + 0x78]
mov dword [edi + 0xc], 0
mov dword [edi + 0x20], eax
movzx eax, word [ecx + 6]
mov ecx, dword [ebp - 8]
movzx ecx, cx
movzx esi, cx
mov word [edi + 4], ax
add esi, 0x28
xor eax, eax
cmp ax, bx
jae 0x1000873a
add esi, dword [ebp - 0x10]
movzx ebx, bx
nop word [eax + eax]
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x10008732
mov eax, dword [esi]
test eax, eax
je 0x10008732
push eax
mov eax, dword [esi + 4]
add eax, dword [ebp - 0xc]
push eax
mov eax, dword [edi]
add eax, ecx
push eax
call fcn.1000d2c0
add esp, 0xc
add esi, 0x28
sub ebx, 1
jne 0x10008710
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001246d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100124ac
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100124ac
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100124ac
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100124ac
cmp dword [ecx + 0x74], 0xe
jbe 0x100124ac
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100152c8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020c00
push 0x10020bf8
push str.FlsAlloc
push 0x1f
call fcn.100151e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100152fc
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f170]
call esi
jmp 0x10015302
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015346
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020c10
push 0x10020c08
push str.FlsGetValue
push 0x21
call fcn.100151e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001537d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001f170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015385
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020c18
push 0x10020c10
push str.FlsSetValue
push 0x22
call fcn.100151e4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100153bf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001f170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10017c48
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 0x10017ce5
push ebx
push esi
call fcn.10017c11
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.10015636
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10017c92
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017ce4
push edi
push eax
call fcn.10014fbb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10017cb2
call fcn.10014f81
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10017ce3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10015636
add esp, 0x20
test eax, eax
jne 0x10017cd1
push edi
call fcn.10014f81
jmp 0x10017cd9
push ebx
call fcn.10014f81
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 0x1001e2a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001e2cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001e2cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret