joyce8/EMBER2024-capa huggingface dataset:
Function at 0x890250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8a4808
push 0x894288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x890329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x890329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.008931d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x890329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x890329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x89032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00890351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x890d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x890d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x890d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x890d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x890d94
push eax
push esi
call fcn.0089320b
add esp, 8
pop esi
ret 0x10

Function at 0x890da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x890e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x890e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x8a9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00892dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x890dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x890e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x890ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x890eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x8a9320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00892dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x890eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x890e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x891000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x891131
push esi
call fcn.00894145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00883080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x891131
push 0
push ebp
call fcn.008833a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00883260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x89108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.008832f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x891121
push 0x8a9918
push edi
call fcn.008923f0
push eax
push ebx
push esi
call fcn.00890f60
push 0x8a98f8
push edi
call fcn.008923f0
push eax
push ebx
push esi
call fcn.00890f60
push 0x8a98d8
push edi
call fcn.008923f0
push eax
push ebx
push esi
call fcn.00890f60
push 0x8a98c0
push edi
call fcn.008923f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00890f60
push 0x8a98a0
push edi
call fcn.008923f0
push eax
push ebx
push esi
call fcn.00890f60
push 0x8a9888
push edi
call fcn.008923f0
push eax
push ebx
push esi
call fcn.00890f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x8921b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00892140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00892140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00892140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00892140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x892bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x892c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x8a487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x892c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x892c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40214a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43814c]
jne 0x402154
repz ret
jmp fcn.00402d5d

Function at 0x40fc8a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43814c]
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.00405b1b
and dword [ebp - 0x14], 0
cmp dword [0x43afe4], 0
mov dword [ebp - 0x18], eax
jne 0x40fd3d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fde5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fde5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x43afe4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x43afe8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x43afec], eax
call edi
push eax
call esi
mov dword [0x43aff4], eax
test eax, eax
je 0x40fd3d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x43aff0], eax
mov eax, dword [0x43aff0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fd96
cmp dword [0x43aff4], ecx
je 0x40fd96
push eax
call esi
push dword [0x43aff4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fd96
test ebx, ebx
je 0x40fd96
call edi
test eax, eax
je 0x40fd8d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fd8d
test byte [ebp - 8], 1
jne 0x40fd96
or dword [ebp + 0x10], 0x200000
jmp 0x40fdc9
mov eax, dword [0x43afe8]
cmp eax, dword [ebp - 0x18]
je 0x40fdc9
push eax
call esi
test eax, eax
je 0x40fdc9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fdc9
mov eax, dword [0x43afec]
cmp eax, dword [ebp - 0x18]
je 0x40fdc9
push eax
call esi
test eax, eax
je 0x40fdc9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43afe4]
call esi
test eax, eax
je 0x40fde5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fde7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040214a
leave
ret
Function at 0x4293e0
Capabilities:
Get disk information
Read file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x43814c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x43f1fc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x43ee64], edi
cmp eax, 0x3dc
jne 0x42942a
push 0
push 0
push 0
call esi
mov eax, dword [0x43f1fc]
dec ebx
jne 0x429410
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor esi, esi
jmp 0x429440
cmp eax, 0x997
jne 0x429487
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x43f1fc]
cmp esi, 0x846017
jne 0x42949e
mov eax, dword [0x439d60]
add eax, 0xa231
mov dword [0x43f1fc], eax
cmp eax, 0x141
jne 0x4294b9
mov dword [0x43b508], 0xec58acac
mov dword [0x43b50c], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x429440
call fcn.00428f40
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040214a
add esp, 0x41c
ret 0x10
Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
test byte [edx - 0x54], dh
push ebp
mov cl, 0xb3
xlatb
mov esp, 0xd75885c2
sub esi, eax
and byte [edi + 0x40], al
sbb dword [ebp + 0x20], edx
fcomp qword [edx]
mov esp, 0xababa503
stosd dword es:[edi], eax
sub ebx, dword [edx]
or dword [ebx - 0x438ee5c4], ebp
out 0xa8, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
jnp 0x4153af
push esp
push esp
ret 0x1e19
xchg esi, eax
js 0x415394
xchg edx, eax
invalid

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

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
mov esi, dword [esp + 0x360]
push edi
xor edi, edi
mov dword [esp + 0x14], ecx
push esi
mov dword [esp + 0x14], edi
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x42420e
mov ebx, dword [esp + 0x368]
test ebx, ebx
je 0x42420e
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea eax, [esp + 0x18]
push esi
push eax
call edi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0040ce70
mov ebp, dword [sym.imp.KERNEL32.DLL_lstrcatA]
add esp, 8
lea edx, [esp + 0x18]
push ebx
push edx
call ebp
lea eax, [esp + 0x220]
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x424137
call fcn.004246e0
lea edx, [esp + 0x11c]
push esi
push edx
call edi
lea eax, [esp + 0x11c]
push 0x104
push eax
call fcn.0040ce70
add esp, 8
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x11c]
push ecx
push edx
call ebp
test byte [esp + 0x220], 0x10
jne 0x42411d
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x11c]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jl 0x42411d
inc dword [esp + 0x10]
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x4240c3
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [esp + 0x18]
push esi
push ecx
call edi
lea edx, [esp + 0x18]
push 0x104
push edx
call fcn.0040ce70
add esp, 8
lea eax, [esp + 0x18]
push 0x42b1bc
push eax
call ebp
lea ecx, [esp + 0x220]
lea edx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4241fd
call fcn.004246e0
test byte [esp + 0x220], 0x10
je 0x4241e3
cmp byte [esp + 0x24c], 0x2e
je 0x4241e3
lea eax, [esp + 0x11c]
push esi
push eax
call edi
lea ecx, [esp + 0x11c]
push 0x104
push ecx
call fcn.0040ce70
add esp, 8
lea edx, [esp + 0x24c]
lea eax, [esp + 0x11c]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x368]
lea edx, [esp + 0x11c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.00424040
add dword [esp + 0x10], eax
lea eax, [esp + 0x220]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x42417b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret 8

Function at 0x413b93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413a09
Function at 0x10002150
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
mov edi, eax
lea eax, [edi + 0x136]
push eax
mov dword [ebp - 4], 0
lea esi, [edi + 0x236]
call ebx
push esi
mov esi, eax
call ebx
add esi, eax
mov eax, dword [ebp + 8]
push eax
call ebx
mov ecx, dword [0x100131f0]
lea eax, [eax + esi + 0x16]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push 8
push ecx
call esi
mov ebx, eax
test ebx, ebx
je 0x10002291
mov eax, dword [ebp + 8]
lea edx, [edi + 0x33c]
push edx
push eax
push 0xe
lea eax, [edi + 0x136]
push eax
lea eax, [edi + 0x236]
push eax
push str.__s__s__d__s__s_
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x100131f0]
add esp, 0x1c
push 0x148
push 8
push ecx
call esi
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x10002282
movzx ecx, word [edi + 0x134]
mov dword [esi + 0x138], eax
mov dword [esi + 0x13c], eax
mov dword [esi + 0x140], eax
mov dword [esi + 0x144], eax
push ecx
mov dword [esi + 0x130], eax
add edi, 0x34
push edi
mov eax, ebx
mov dword [esi + 0x11c], 1
call fcn.10003620
xor edi, edi
mov dword [esi], eax
cmp eax, edi
je 0x1000226a
lea edx, [ebp + 8]
push edx
push edi
push esi
push 0x100041e0
push edi
push edi
mov dword [ebp + 8], edi
mov dword [esi + 0x134], 5
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x128], eax
test eax, eax
je 0x1000225c
mov edi, 1
mov dword [ebp - 4], edi
test edi, edi
jne 0x10002280
call fcn.100022a0
jmp 0x10002280
mov eax, esi
call fcn.10003930
mov eax, dword [0x100131f0]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov ecx, dword [0x100131f0]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100022d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x300
push ebx
push esi
push edi
mov edi, eax
lea eax, [edi + 0x33c]
push eax
push 0x3c
lea ecx, [edi + 0x136]
push ecx
lea edx, [edi + 0x236]
push edx
lea eax, [ebp - 0x300]
push str.__s__s__d__s_
push eax
xor ebx, ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x100131f0]
add esp, 0x18
push 0x148
push 8
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x100023d5
movzx eax, word [edi + 0x134]
push eax
lea edx, [edi + 0x34]
mov dword [esi + 0x138], ebx
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
push edx
lea eax, [ebp - 0x300]
mov dword [esi + 0x11c], 1
mov dword [esi + 0x130], ebx
call fcn.10003620
mov dword [esi], eax
cmp eax, ebx
je 0x100023d5
mov eax, dword [ebp + 8]
push eax
push 2
mov ebx, esi
call fcn.10003780
test eax, eax
je 0x100023d5
lea ecx, [ebp + 8]
push ecx
mov dword [esi + 0x124], edi
xor edi, edi
push edi
push esi
push 0x10003e90
push edi
push edi
mov dword [esi + 0x120], 0x100022c0
mov dword [ebp + 8], edi
mov dword [esi + 0x134], 5
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x128], eax
test eax, eax
je 0x100023c1
mov edi, 1
test edi, edi
jne 0x100023ca
call fcn.100022a0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002490
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x35c
push ebx
push esi
push edi
mov ebx, eax
lea eax, [ebx + 0x33c]
push eax
push ecx
push str.wininet.dll
lea edx, [ebx + 0x136]
push edx
lea eax, [ebx + 0x236]
push eax
lea ecx, [esp + 0x7c]
push str.__s__s_63_file__s__s__s_
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [0x100131f0]
add esp, 0x1c
push 0x148
push 8
push edx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x10002627
movzx eax, word [ebx + 0x134]
push eax
mov dword [esi + 0x138], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], edi
mov dword [esi + 0x144], edi
add ebx, 0x34
push ebx
lea eax, [esp + 0x70]
mov dword [esi + 0x11c], 1
mov dword [esi + 0x130], edi
call fcn.10003620
mov dword [esi], eax
cmp eax, edi
je 0x10002611
push str.sfile
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [esp + 0x18]
push eax
push 1
mov ebx, esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
call fcn.10003780
test eax, eax
je 0x10002627
push edi
push edi
push edi
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [esp + 0x14]
push edx
push edi
push esi
push 0x10003e90
push edi
lea ecx, [esp + 0x20]
push edi
mov dword [esp + 0x24], eax
mov dword [esi + 0x120], 0x10002470
mov dword [esi + 0x124], ecx
xor ebx, ebx
mov dword [esp + 0x2c], edi
mov dword [esi + 0x134], 5
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x128], eax
cmp eax, edi
je 0x100025c3
mov ebx, 1
cmp ebx, edi
je 0x100025f6
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x100025fb
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0x10], edi
je 0x100025fb
mov eax, dword [esp + 0xc]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.100022a0
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, esi
call fcn.10003930
mov ecx, dword [0x100131f0]
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10002d80
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 4
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002dc7
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x24], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x10002dce
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push esi
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x18], ecx
jne 0x10002e01
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
je 0x10002e01
push eax
push 0
push 2
call ebx
mov esi, eax
test esi, esi
je 0x10002e23
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10002dd6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10002e40
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push 4
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002e87
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x24], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
jne 0x10002e8e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenThread]
push esi
mov ecx, dword [ebp - 4]
cmp dword [ebp - 0x18], ecx
jne 0x10002ec1
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 8]
je 0x10002ec1
push eax
push 0
push 2
call ebx
mov esi, eax
test esi, esi
je 0x10002ec1
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10002e96
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10002ef0
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
mov esi, ecx
call fcn.10002d80
test eax, eax
je 0x10002f28
test ebx, ebx
je 0x10002f20
push edi
mov edi, dword [ebp + 8]
sub edi, esi
lea esp, [esp]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, byte [edi + esi]
mov byte [esi], al
inc esi
dec ebx
jne 0x10002f10
pop edi
pop esi
pop ebx
pop ebp
jmp fcn.10002e40
pop esi
pop ebx
pop ebp
ret