joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016ae
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x2a3]
push ebx
push eax
mov byte [ebp - 0x2a4], bl
call fcn.00401e70
push str.InstMsiW
lea eax, [ebp - 0x2a4]
push 0x104
push eax
call fcn.00401f81
push 0x95
lea eax, [ebp - 0x9b]
push ebx
push eax
mov byte [ebp - 0x9c], bl
call fcn.00401e70
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x9c]
push str.INSTALLER__s
push eax
call fcn.004014b6
lea eax, [ebp - 0x9c]
push 0x96
push eax
call fcn.004023d7
push esi
lea eax, [ebp - 0x3a7]
push ebx
push eax
mov byte [ebp - 0x3a8], bl
call fcn.00401e70
add esp, 0x44
lea eax, [ebp - 0x3a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
lea eax, [ebp - 0x19f]
push ebx
push eax
mov byte [ebp - 0x1a0], bl
call fcn.00401e70
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x3a8]
push eax
lea eax, [ebp - 0x1a0]
push str._s_s.exe
push eax
call fcn.004014d2
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x9c]
push eax
push str.INSTALLER
push ebx
call fcn.004013bd
add esp, 0x2c
test eax, eax
je 0x4017b6
push 0xd
pop eax
jmp 0x4017d6
lea eax, [ebp - 0x1a0]
push edi
push eax
call fcn.00401322
pop ecx
mov esi, eax
pop ecx
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004023f9
leave
ret

Function at 0x4017e5
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push str.MsiInstSingleInstance
xor esi, esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x40de20], eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.00401512
lea ecx, [ebp - 4]
call fcn.004014ee
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov esi, ecx
lea ecx, [ebp - 4]
call fcn.0040167a
mov eax, esi
pop esi
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x401f11
call fcn.00402beb
mov dword [eax], esi
call fcn.00402bd8
push 0x16
pop esi
mov dword [eax], esi
call fcn.00402dab
mov eax, esi
jmp 0x401f66
test dword [ebp + 0xc], 0xfffffff9
jne 0x401ef7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401f3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402bfe
pop ecx
call fcn.00402bd8
mov eax, dword [eax]
jmp 0x401f66
test al, 0x10
jne 0x401f64
test al, 1
je 0x401f64
test byte [ebp + 0xc], 2
je 0x401f64
call fcn.00402beb
mov dword [eax], 5
call fcn.00402bd8
mov dword [eax], 0xd
jmp 0x401f35
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4023f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x402403
repz ret
jmp fcn.00404ce3
Function at 0x407ae9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404605
and dword [ebp - 0x14], 0
cmp dword [0x40ea88], 0
mov dword [ebp - 0x18], eax
jne 0x407b9c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407c44
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407c44
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40ea88], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40ea8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40ea90], eax
call edi
push eax
call esi
mov dword [0x40ea98], eax
test eax, eax
je 0x407b9c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40ea94], eax
mov eax, dword [0x40ea94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407bf5
cmp dword [0x40ea98], ecx
je 0x407bf5
push eax
call esi
push dword [0x40ea98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407bf5
test ebx, ebx
je 0x407bf5
call edi
test eax, eax
je 0x407bec
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407bec
test byte [ebp - 8], 1
jne 0x407bf5
or dword [ebp + 0x10], 0x200000
jmp 0x407c28
mov eax, dword [0x40ea8c]
cmp eax, dword [ebp - 0x18]
je 0x407c28
push eax
call esi
test eax, eax
je 0x407c28
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407c28
mov eax, dword [0x40ea90]
cmp eax, dword [ebp - 0x18]
je 0x407c28
push eax
call esi
test eax, eax
je 0x407c28
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40ea88]
call esi
test eax, eax
je 0x407c44
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407c46
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004023f9
leave
ret
Function at 0x8c5058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8c51a8
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 0x8c507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c506a
add dl, dl
jne 0x8c5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c50dc
xor eax, eax
add dl, dl
jne 0x8c5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8c517d
add dl, dl
jne 0x8c50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8c50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8c5075
mov eax, 1
add dl, dl
jne 0x8c50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8c50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c50e1
sub eax, ebx
mov ebx, 1
jne 0x8c5128
mov ecx, 1
add dl, dl
jne 0x8c510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8c513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8c514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8c5136
cmp eax, 0x7d00
jae 0x8c516d
cmp eax, 0x500
jb 0x8c5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c5075
cmp eax, 0x7f
ja 0x8c5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8c5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8c519e
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 0x8c5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401090
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
mov dword [ebp - 8], edx
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
push str.Guess_a_number_from_1_1000_for_a_surprise__n
call fcn.00401020
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
add esp, 0xc
mov ebx, 0x3e8
nop dword [eax]
call edi
cdq
idiv ebx
push str.Your_guess:
lea esi, [edx + 1]
call fcn.00401020
lea eax, [ebp - 8]
push eax
push 0x40215c
call fcn.00401050
add esp, 0xc
cmp dword [ebp - 8], esi
je 0x401108
push esi
push str.Wrong._The_number_was__d_n
call fcn.00401020
add esp, 8
jmp 0x4010d0
push str.You_bitch._Thats_it_n
call fcn.00401020
push str.PAUSE
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00401133
mov esp, ebp
pop ebp
ret

Function at 0x40192d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40196c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40196c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40196c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40196c
cmp dword [ecx + 0x74], 0xe
jbe 0x40196c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov edi, ecx
or esi, 0xffffffff
xor ecx, ecx
mov eax, ecx
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], ecx
test cl, 1
je 0x404f47
xor eax, 0xedb88320
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404f5b
shr eax, 1
xor eax, 0xedb88320
jmp 0x404f5d
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404f71
shr eax, 1
xor eax, 0xedb88320
jmp 0x404f73
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404f87
shr eax, 1
xor eax, 0xedb88320
jmp 0x404f89
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404f9d
shr eax, 1
xor eax, 0xedb88320
jmp 0x404f9f
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404fb3
shr eax, 1
xor eax, 0xedb88320
jmp 0x404fb5
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404fc9
shr eax, 1
xor eax, 0xedb88320
jmp 0x404fcb
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
test al, 1
je 0x404fdf
shr eax, 1
xor eax, 0xedb88320
jmp 0x404fe1
shr eax, 1
mov dword [ebp + ecx*4 - 0x400], eax
inc ecx
cmp ecx, 0x100
jb 0x404f32
xor ecx, ecx
test edx, edx
je 0x40501a
jmp 0x405000
movzx eax, byte [ecx + edi]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [ebp + eax*4 - 0x400]
inc ecx
cmp ecx, edx
jb 0x405000
not esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405060
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
xor eax, eax
mov byte [ebp + eax - 0x108], al
inc eax
cmp eax, 0x100
jb 0x405071
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
xor esi, esi
lea ebx, [ebx]
mov dl, byte [ebp + esi - 0x108]
mov eax, esi
and eax, 0xf
movzx ecx, dl
movzx eax, byte [eax + ebx]
add edi, eax
add edi, ecx
and edi, 0xff
inc esi
mov al, byte [ebp + edi - 0x108]
mov byte [ebp + esi - 0x109], al
mov byte [ebp + edi - 0x108], dl
cmp esi, 0x100
jb 0x405090
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 4], ebx
jbe 0x40512d
inc esi
and esi, 0xff
inc edi
mov dl, byte [ebp + esi - 0x108]
movzx eax, dl
add ebx, eax
and ebx, 0xff
movzx eax, byte [ebp + ebx - 0x108]
mov byte [ebp + esi - 0x108], al
mov byte [ebp + ebx - 0x108], dl
movzx ecx, byte [ebp + esi - 0x108]
movzx eax, dl
add ecx, eax
and ecx, 0xff
movzx eax, byte [ebp + ecx - 0x108]
mov ecx, dword [ebp - 8]
xor byte [edi + ecx - 1], al
cmp edi, dword [ebp - 4]
jb 0x4050d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405140
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405169
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
lea ecx, [ebx + 0xc]
push ecx
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x405198
push esi
call dword [sym.imp.ntdll.dll_NtClose]
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [edi + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4051c5
push esi
call dword [sym.imp.ntdll.dll_NtClose]
push edi
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push esi
mov dword [edi], ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4055c0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [0x40ec28]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405627
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push edi
push pe_nt_image_headers32
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x405627
push 0
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x405627
push dword [ebp - 4]
mov edx, edi
mov ecx, ebx
call fcn.00405200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405700
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push 0xf0000000
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax + 0x14]
push 0
mov eax, dword [eax + 0x20]
push 0
push 0x40ec24
mov dword [0x40ec28], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
neg eax
sbb eax, eax
neg eax
ret

Function at 0x405740
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa54
lea eax, [esp + 0x654]
push ebx
push esi
push edi
mov ebx, ecx
push ebx
push 0x404ddc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x664]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057f9
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileW]
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
je 0x4057f2
cmp word [esp + 0x3c], 0x2e
je 0x4057e6
lea eax, [esp + 0x3c]
push eax
push ebx
lea eax, [esp + 0x268]
push 0x404de8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [esp + 0x10], 0x10
je 0x4057cd
lea ecx, [esp + 0x260]
call fcn.00405740
jmp 0x4057e6
lea ecx, [esp + 0x3c]
call fcn.00404f10
test eax, eax
je 0x4057e6
lea ecx, [esp + 0x260]
call fcn.00405630
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x405794
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405920
Capabilities:
Check mutex on windows
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
push esi
call fcn.00405700
test eax, eax
jne 0x405940
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 0x10]
call fcn.004055c0
push 0x404df8
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40596d
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 0
push 0x405820
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push 0x400
lea eax, [esp + 0x14]
push eax
push 0x404e88
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov esi, dword [sym.imp.ntdll.dll_NtDelayExecution]
mov dword [esp + 8], 0x4d2fa200
mov dword [esp + 0xc], 0xffffffff
lea ecx, [ecx]
lea ecx, [esp + 0x10]
call fcn.00405740
lea eax, [esp + 8]
push eax
push 0
call esi
jmp 0x4059b0
Function at 0x408cca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40da60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004070cc
mov dword [ebp - 0x14], eax
cmp dword [0x40e8d4], edi
jne 0x408dbb
push 0x800
push edi
push 0x4022f0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x408d48
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x408e9b
push 0x4022f0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x408e9b
push 0x402308
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x408e9b
push eax
call ebx
push 0x402314
push esi
mov dword [0x40e8d4], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x402324
push esi
mov dword [0x40e8d8], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x402338
push esi
mov dword [0x40e8dc], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x40e8e4], eax
test eax, eax
je 0x408db8
push 0x402354
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x40e8e0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x408de0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408dd3
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x408df5
push 4
pop eax
jmp 0x408e9d
cmp dword [ebp - 0x14], edi
je 0x408df5
push dword [0x40e8d4]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x408dda
mov eax, dword [0x40e8e0]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, esi
je 0x408e53
cmp dword [0x40e8e4], esi
je 0x408e53
push eax
call ebx
push dword [0x40e8e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408e53
test eax, eax
je 0x408e53
call ecx
test eax, eax
je 0x408e48
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x408e48
test byte [ebp - 8], 1
jne 0x408e53
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x408e83
mov eax, dword [0x40e8d8]
cmp eax, esi
je 0x408e80
push eax
call ebx
test eax, eax
je 0x408e80
call eax
mov edi, eax
test edi, edi
je 0x408e80
mov eax, dword [0x40e8dc]
cmp eax, esi
je 0x408e80
push eax
call ebx
test eax, eax
je 0x408e80
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40e8d4]
call ebx
test eax, eax
je 0x408e9b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x408e9d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408eac
leave
ret
Function at 0x100025fe
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101eb100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x10002709
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10002702
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x100026c6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100026c6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100026c6
mov edx, dword [esi]
test edx, edx
jne 0x1000268f
push 0x200
push edx
push dword [0x102f626c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100026eb
lea ebx, [esi + 8]
jmp 0x100026b9
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x100026b9
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x102f626c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1000271a
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10002647
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10002702
xor edi, edi
cmp dword [esi], edi
je 0x10002702
push dword [esi]
push edi
push dword [0x102f626c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100bbfd9
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x100026eb

Function at 0x1000271f
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.100025fe
test eax, eax
jne 0x10002743
push 9
pop esi
jmp 0x1000278a
cmp dword [edi], esi
je 0x1000278a
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10002789
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x10002783
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.100024ab
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x1000274f
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret