joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434fcf
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push 0x48
mov eax, 0x48a0a6
call fcn.0045edb6
mov ebx, ecx
mov eax, 0x10000
push eax
mov dword [ebx + 0x30], eax
call fcn.0045e3ba
push 0
mov dword [ebx + 0x2c], eax
call fcn.00465dc5
pop ecx
pop ecx
and dword [ebp - 0x50], 0
mov ecx, dword [ebx + 0x80]
mov dword [ebp - 0x54], 1
call fcn.00434141
mov ecx, eax
test ecx, ecx
je 0x435089
cmp ecx, 0xfffffffd
jne 0x43502a
mov eax, dword [ebx + 0x80]
cmp byte [eax + 0x70], 0
jne 0x43500f
call fcn.0045ed60
ret
mov esi, dword [ebx + 0x80]
cmp dword [esi + 0x68], 0
jle 0x43504e
call fcn.00419037
mov ecx, eax
call fcn.00419173
xor edx, edx
mov edi, dword [esi + 0x64]
div dword [esi + 0x68]
add edi, edx
jmp 0x435051
mov edi, dword [esi + 0x64]
xor eax, eax
mov dword [ebp - 0x4c], eax
test edi, edi
jle 0x43507c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebx + 0x80]
mov ecx, esi
add dword [ebp - 0x4c], 0x64
call fcn.00434141
test eax, eax
je 0x435089
cmp dword [ebp - 0x4c], edi
jl 0x43505a
push 1
push 0
mov ecx, esi
call fcn.004337f8
jmp 0x43500d
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x7c]
mov eax, dword [ecx]
call dword [eax + 0x10]
lea ecx, [ebx + 0x38]
call fcn.0042f7ff
cmp dword [ebx + 0x48], 1
jg 0x4350b5
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x434ff7
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push dword [ebx + 0x44]
push dword [ebx + 0x48]
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x434ff7
call fcn.00404cc6
mov edx, dword [ebx + 0x80]
mov ecx, dword [edx + 0x7c]
cmp byte [ecx + 4], 0
je 0x4350fa
mov eax, dword [ecx]
push dword [edx + 0xa0]
call dword [eax + 8]
test eax, eax
je 0x434ff7
jmp 0x435150
push 0
push dword [ebx + 0x30]
push dword [ebx + 0x2c]
push dword [edx + 0xa0]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x435139
mov esi, dword [ebx + 0x80]
cdq
push edx
push eax
mov ecx, dword [esi + 0x7c]
push dword [ebx + 0x2c]
push dword [esi + 0xa0]
mov edi, dword [ecx]
call dword [edi + 0xc]
test eax, eax
je 0x434ff7
cmp eax, 0xfffffff7
jmp 0x4350f2
jns 0x435148
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jmp 0x4350f2
test eax, eax
jne 0x434ff7
cmp dword [0x4b6e40], 3
jl 0x4351a8
push str.e:works10760_blowsnow_source_smartice_sirecvthread.cpp
lea ecx, [ebp - 0x48]
call fcn.0041ba7d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push str.recv_check_error_set_connect_state
call fcn.0041b9a3
push 3
push 0xc9
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, 0x4b6e40
push eax
call fcn.004332c7
lea ecx, [ebp - 0x2c]
call fcn.0041bf1b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041bf1b
mov eax, dword [ebx + 0x80]
mov byte [eax + 0xa9], 0
jmp 0x434ff7
Function at 0x441ed6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x80], 0
jne 0x442024
cmp dword [esi + 8], 0
je 0x442024
push dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.00416857
lea edi, [esi + 0x2c]
push 0x49c634
mov ecx, edi
call fcn.00416857
lea ebx, [esi + 0x44]
push 0x49c634
mov ecx, ebx
call fcn.00416857
cmp dword [ebp + 0xc], 0
je 0x441f31
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00416857
jmp 0x441f3d
mov ecx, dword [ebp + 8]
mov edx, edi
push ebx
call fcn.00442118
pop ecx
mov eax, dword [esi + 0xc]
xor edi, edi
inc edi
xor ebx, ebx
test eax, eax
jne 0x441f5e
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x442024
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x441f74
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [esi + 0x7c], ebx
call fcn.00442700
test eax, eax
je 0x441f96
cmp dword [esi + 4], edi
jne 0x441f96
push 0x54
call fcn.0045e37c
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.00449aad
jmp 0x441fc3
push 0x2c
call fcn.0045e37c
pop ecx
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov dword [eax], vtable.CWininetFile.0
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], 7
mov word [eax + 0xc], cx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x28], ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffd
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.STATIC
push ebx
mov dword [esi + 0x7c], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x44267d
push 0xfffffffffffffffc
push eax
mov dword [esi + 0x5c], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 4]
mov dword [esi + 0x80], edi
push eax
push ebx
push esi
push 0x442237
push ebx
push ebx
mov dword [ebp - 4], ebx
call fcn.004677e1
mov ecx, eax
add esp, 0x18
mov dword [esi + 0x10], ecx
test ecx, ecx
jne 0x44201b
mov dword [esi + 0x80], ebx
xor eax, eax
test ecx, ecx
setne al
jmp 0x442026
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x442118
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4b2070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push esi
push edi
push 0x20a
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.004606c0
push 0x412
lea eax, [ebp - 0x624]
push 0
push eax
call fcn.004606c0
push 0x2f
push esi
call fcn.0045faa7
add esp, 0x20
mov esi, 0x105
test eax, eax
je 0x442194
push 0xffffffffffffffff
add eax, 2
push eax
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0046eaaa
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.SHELL32.dll_PathCleanupSpec]
cmp word [ebp - 0x210], 0
jne 0x4421b5
push 0xffffffffffffffff
push str.unknown
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0046eaaa
add esp, 0x10
lea eax, [ebp - 0x624]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x624]
push str.Download
push eax
call esi
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4421fc
push eax
lea eax, [ebp - 0x624]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x624]
push eax
call esi
lea eax, [ebp - 0x624]
mov ecx, edi
push eax
call fcn.00416857
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00416857
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e16b
leave
ret

Function at 0x4425cd
Capabilities:
Check if file exists
Copy file
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b2070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push 0x20a
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call fcn.004606c0
push edi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00468172
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x44263e
push ebx
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
add esi, 0x2c
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x44264b
mov eax, dword [esi]
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
cmp dword [ebp + 0xc], ebx
je 0x44266a
cmp dword [esi + 0x14], 8
jb 0x442663
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e16b
leave
ret 8
Function at 0x442700
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4b2070]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.004606c0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
test eax, eax
je 0x442772
cmp dword [ebp - 0x11c], 5
jne 0x44276c
cmp dword [ebp - 0x118], ecx
jne 0x44275e
cmp word [ebp - 0xc], cx
jmp 0x44276c
cmp dword [ebp - 0x118], 0
jne 0x442772
cmp word [ebp - 0xc], 3
jae 0x442772
xor eax, eax
jmp 0x442774
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e16b
leave
ret
Function at 0x4442a2
Capabilities:
Identify system language via api

Disassembly:
push 0x44
mov eax, 0x48b69f
call fcn.0045edb6
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov bl, byte [0x4b6af8]
mov bh, byte [0x4b68a3]
movsx edi, ax
shr eax, 0x10
cwde
push eax
push edi
push 0x4b6b80
mov byte [0x4b6af8], 0
mov byte [0x4b68a3], 0
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x44438b
mov byte [0x4b6afa], 0
mov byte [0x4b6af9], 1
test bl, bl
je 0x4443d1
lea ecx, [ebp - 0x2c]
call fcn.0041b469
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.00405059
lea ecx, [ebp - 0x48]
test al, al
je 0x44432b
push 0x4a0ca0
call fcn.0041ba7d
mov byte [ebp - 4], 1
jmp 0x444339
push str.Setup_is_harding_work_it_maybe_make_you_cannt_connect_to_internet_if_you_quit_now._Do_you_sure_to_exit_
call fcn.0041ba7d
mov byte [ebp - 4], 2
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.0041e62b
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.0041bf1b
mov ecx, esi
call fcn.004443d7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x34
cmovae eax, dword [ebp - 0x28]
push str.FBI_Warning
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x444381
push ebx
push ebx
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x2c]
call fcn.0041bf1b
jmp 0x4443d1
push dword [ebp - 0x4c]
push edi
push 0x4b6b50
call dword [sym.imp.USER32.dll_PtInRect]
mov byte [0x4b6af9], 0
test eax, eax
je 0x4443bb
mov byte [0x4b6afa], 1
test bh, bh
je 0x4443d1
push 6
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4443d1
mov byte [0x4b6afa], 0
test bh, bh
jne 0x4443ca
test bl, bl
je 0x4443d1
mov ecx, esi
call fcn.004443d7
call fcn.0045ed60
ret
Function at 0x44a5ac
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x28
call fcn.0045e37c
mov esi, eax
xor eax, eax
pop ecx
push dword [ebp + 0xc]
mov ecx, esi
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00416857
lea ebx, [esi + 0x18]
mov dword [esi + 0x24], 2
xor eax, eax
mov edi, ebx
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push ecx
push esi
push 0x44a516
push ecx
push ecx
mov dword [ebp - 4], ecx
call fcn.004677e1
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x44a611
mov ecx, esi
call fcn.004498be
jmp 0x44a644
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x44a636
cmp dword [ebx], 3
jne 0x44a636
mov ecx, dword [ebp + 8]
push 0xc
push ebx
push 0x26
pop edx
call fcn.0044a8dd
pop ecx
pop ecx
mov ecx, esi
call fcn.004498be
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44a64b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4b2070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4b6b98], 0
jne 0x44a6be
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004606c0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.winhttp.dll
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [0x4b6b98], eax
test eax, eax
setne cl
mov eax, ecx
jmp 0x44a6c1
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e16b
leave
ret
Function at 0x44a99a
Capabilities:
Check http status code
Check internet connectivity via wininet
Create http request
Get http content length
Reference http user-agent string

Disassembly:
push 0x268
push 0x4ad810
call fcn.004837b0
mov edx, ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], ebx
push 8
pop ecx
mov esi, str.Accept:___r_n_r_n
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x50], ebx
mov esi, ebx
mov edi, ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], 4
cmp dword [ebp - 0x54], ebx
jne 0x44a9ef
xor eax, eax
jmp 0x44ab29
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [ebp - 0x50], 0x20
je 0x44aa19
mov dword [ebp - 4], 0xfffffffe
mov edx, dword [ebp - 0x40]
jmp 0x44ab1b
mov edx, dword [ebp - 0x48]
test edx, edx
je 0x44aa3f
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x48], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x44aa28
sub ecx, dword [ebp - 0x48]
sar ecx, 1
je 0x44aa3f
push 3
pop esi
mov edi, edx
push ebx
push ebx
push edi
push esi
push str.Mozilla_5.0__compatible__MSIE_8.0__Windows_NT_6.1__LeagSoft.0_
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x44aa0a
push ebx
push 0x84000100
push 0xffffffffffffffff
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
mov dword [ebp - 0x44], esi
test esi, esi
jne 0x44aa85
mov dword [ebp - 4], 0xfffffffe
mov edx, dword [ebp - 0x40]
jmp 0x44ab1e
push 0x20a
push ebx
lea eax, [ebp - 0x278]
push eax
call fcn.004606c0
add esp, 0xc
mov dword [ebp - 0x64], 0x208
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x278]
push 0x2f
push esi
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
call edi
mov dword [ebp - 0x58], ebx
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x58]
push eax
push 0x20000013
push esi
call edi
test eax, eax
je 0x44aa76
cmp dword [ebp - 0x58], 0xc8
jne 0x44aa76
push ebx
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x20000005
push esi
call edi
mov edx, dword [ebp - 0x40]
test eax, eax
je 0x44aaf6
mov eax, dword [ebp - 0x60]
mov dword [edx + 0x24], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x44ab1e
mov esi, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 4], ecx
mov dword [edx + 8], esi
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x477c23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00477aa2

Function at 0x47c8b4
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047c574
Function at 0x10006af0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10072040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0xfc]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x100]
subss xmm0, xmm1
mov ecx, dword [edx + 0xe0]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xe8]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1006a2b8]
sub edi, 1
jne 0x10006b70
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.10049481
mov esp, ebp
pop ebp
ret 4
Function at 0x1000f660
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10072040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10072700]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3e28]
mov esi, 4
mov eax, dword [edi + 0xe0]
add edi, 0xe0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1006a2b8]
sub esi, 1
jne 0x1000f6a1
mov eax, dword [0x10072700]
not ebx
cmp dword [eax + 0x3e5c], ebx
jne 0x1000f6db
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.100190f0
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x1000f706
inc esi
test ecx, ecx
je 0x1000f6f4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000f6f9
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.10019920
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10049481
mov esp, ebp
pop ebp
ret
Function at 0x1002acf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x10072040]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [0x10072700]
mov dword [esp + 0x28], ebx
push esi
push edi
test ebx, ebx
je 0x1002ad1a
mov esi, dword [ebx + 0x78]
jmp 0x1002ad1c
xor esi, esi
mov ecx, dword [ebx + 0x48]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.10025dd0
mov eax, dword [ebx + 0x48]
mov ebx, dword [esp + 0x20]
cmp byte [eax + 0x19], 0
je 0x1002adc5
mov eax, ebx
imul eax, dword [esp + 0x10]
mov ecx, eax
mov dword [esp + 0x1c], eax
imul ecx, dword [esp + 0x28]
mov eax, dword [0x10072700]
test eax, eax
je 0x1002ad6a
inc dword [eax + 0xb0]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov esi, edi
mov dword [esp + 0x18], edi
lea eax, [edi + eax*4]
mov dword [esp + 0x2c], eax
cmp edi, eax
jae 0x1002adcd
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
sub eax, edi
mov edi, eax
mov edx, dword [edi + esi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, dl
and edx, 0xff00ff00
shl eax, 0x10
or ecx, eax
or ecx, edx
mov dword [esi], ecx
add esi, 4
cmp esi, ebx
jb 0x1002ad97
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
jmp 0x1002adcd
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
push 0
lea esi, [eax + 0xc]
mov dword [esi], 0
mov ecx, dword [eax]
push esi
push 0
push 0x15
mov eax, dword [ecx]
push 0x200
push 1
push dword [esp + 0x28]
push ebx
push ecx
call dword [eax + 0x5c]
test eax, eax
js 0x1002ae9f
mov ecx, dword [esi]
lea edx, [esp + 0x34]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x4c]
test eax, eax
jne 0x1002ae9f
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x1002ae44
imul ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
imul eax, esi
push ebx
push edi
add eax, dword [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memcpy
inc esi
add esp, 0xc
add edi, ebx
cmp esi, dword [esp + 0x10]
jl 0x1002ae25
mov esi, dword [esp + 0x14]
push 0
mov eax, dword [esi + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 0xc]
mov ecx, dword [edx + 0x48]
mov dword [ecx + 4], eax
mov eax, dword [edx + 0x48]
cmp byte [eax + 0x19], 0
je 0x1002ae8b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002ae81
mov ecx, dword [0x10072700]
test ecx, ecx
je 0x1002ae81
dec dword [ecx + 0xb0]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10049481
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10049481
mov esp, ebp
pop ebp
ret
Function at 0x10043c70
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10072040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10043d83
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10043d7c
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x10043d3f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10043d3f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10043d3f
mov edx, dword [esi]
test edx, edx
jne 0x10043d08
push 0x200
push edx
push dword [0x1007270c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10043d64
lea edi, [esi + 8]
jmp 0x10043d32
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10043d32
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1007270c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10043d96
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10043cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10043d7c
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x10043d7c
push eax
push ebx
push dword [0x1007270c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10049481
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10043d64

Function at 0x10043da0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10043c70
test eax, eax
jne 0x10043dd1
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x10043e22
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x10043e1a
push ebx
nop
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10043e13
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10043b00
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10043de0
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret