joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ce43
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a418]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407037
mov dword [ebp - 0x14], eax
cmp dword [0x432358], esi
jne 0x40cf36
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d016
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d016
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d016
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x432358], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43235c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x432360], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x432368], eax
test eax, eax
je 0x40cf33
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x432364], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cf5b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cf4e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cf70
push 4
pop eax
jmp 0x40d018
cmp dword [ebp - 0x14], esi
je 0x40cf70
push dword [0x432358]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cf55
mov eax, dword [0x432364]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40cfce
cmp dword [0x432368], edi
je 0x40cfce
push eax
call ebx
push dword [0x432368]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cfce
test eax, eax
je 0x40cfce
call ecx
test eax, eax
je 0x40cfc3
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 0x40cfc3
test byte [ebp - 8], 1
jne 0x40cfce
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cffe
mov eax, dword [0x43235c]
cmp eax, edi
je 0x40cffb
push eax
call ebx
test eax, eax
je 0x40cffb
call eax
mov esi, eax
test esi, esi
je 0x40cffb
mov eax, dword [0x432360]
cmp eax, edi
je 0x40cffb
push eax
call ebx
test eax, eax
je 0x40cffb
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x432358]
call ebx
test eax, eax
je 0x40d016
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d018
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403ffb
mov esp, ebp
pop ebp
ret
Function at 0x401490
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov dword [eax*4 + 0x427578], eax
inc eax
cmp eax, 0x100
jne 0x401492
push esi
xor esi, esi
xor ecx, ecx
xor edx, edx
mov eax, ecx
div edi
inc ecx
movsx eax, byte [edx + 0x4207ec]
add eax, dword [ecx*4 + 0x427574]
add eax, esi
and eax, 0xff
mov esi, eax
mov al, byte [ecx*4 + 0x427574]
mov edx, dword [esi*4 + 0x427578]
mov dword [ecx*4 + 0x427574], edx
movzx eax, al
mov dword [esi*4 + 0x427578], eax
cmp ecx, 0x100
jne 0x4014a6
mov dword [0x427978], 0
mov dword [0x42797c], 0
pop esi
ret

Function at 0x401610
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hide graphical window

Disassembly:
push ebp
mov ebp, dword [0x42756c]
push esi
mov esi, eax
mov eax, 0x4207ec
push edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401623
sub eax, edx
mov edi, eax
call fcn.00401490
sub esi, 1
js 0x4016a7
mov ecx, dword [0x42797c]
mov eax, dword [0x427978]
jmp 0x401650
inc ecx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x427578]
add eax, edi
and eax, 0xff
mov dl, byte [eax*4 + 0x427578]
mov dword [eax*4 + 0x427578], edi
movzx edx, dl
mov dword [ecx*4 + 0x427578], edx
mov edi, dword [eax*4 + 0x427578]
add edi, edx
and edi, 0xff
movzx edx, byte [edi*4 + 0x427578]
xor byte [esi + ebp], dl
sub esi, 1
jns 0x401650
mov dword [0x427978], eax
mov dword [0x42797c], ecx
pop edi
cmp esi, 0x34adb9
pop esi
pop ebp
jle 0x4016c6
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
ret
Function at 0x4016e0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0xbc
mov eax, dword [0x4230e0]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetMonitorInfoW]
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCPInfo]
mov dword [0x427568], esi
mov dword [0x427574], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov byte [esp + 0x13], 1
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x2c]
push edx
call sub.KERNEL32.dll_GetSystemTimes
lea eax, [esp + 0xb0]
push eax
push 0
call edi
lea ecx, [esp + 0x88]
push ecx
push 0
call ebp
lea edx, [esp + 0x44]
push edx
call ebx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp esi, 0x54645
jle 0x4017cf
cmp dword [esp + 0x24], 0x3c4020
je 0x4017cf
cmp byte [esp + 0xb6], 0xea
je 0x4017cf
cmp dword [esp + 0x94], 0x979c0c0
je 0x4017cf
cmp dword [esp + 0x50], 0x2ba6a94e
je 0x4017cf
cmp dword [esp + 0x7c], 0x31fdfd49
je 0x4017cf
mov eax, dword [0x427980]
mov byte [esp + 0x13], 0
test eax, eax
jne 0x4017be
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x427980], eax
push str.VirtualProtect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x427568], eax
inc esi
cmp byte [esp + 0x13], 0
jne 0x401725
mov ax, word [esp + 0x38]
mov ecx, 0x165daba
jmp 0x401808
cmp dword [esp + 0x18], 0x5462d
jbe 0x401808
mov edx, 0x15a
cmp ax, dx
je 0x401808
mov dword [esp + 0x1c], ecx
inc dword [esp + 0x18]
cmp dword [esp + 0x1c], ecx
jne 0x4017f0
mov dword [esp + 0x14], 0
mov dword [esp + 0x14], 0xb38c
mov eax, dword [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x14]
mov dword [0x42756c], eax
xor eax, eax
test ecx, ecx
jbe 0x401856
mov cl, byte [eax + str._nRO___]
mov edx, dword [0x42756c]
mov byte [edx + eax], cl
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
jb 0x40183e
lea eax, [esp + 0x20]
push eax
push 0x40
push ecx
mov ecx, dword [0x42756c]
push ecx
call dword [0x427568]
mov eax, dword [esp + 0x14]
call fcn.00401610
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00402854
add esp, 0xbc
ret

Function at 0x402854
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4230e0]
jne 0x40285e
repz ret
jmp fcn.00403b90
Function at 0x412b6a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405ae6
and dword [ebp - 4], 0
cmp dword [0x424c80], 0
mov ebx, eax
jne 0x412c1b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412ccc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412ccc
push eax
call fcn.00405a74
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x424c80], eax
call esi
push eax
call fcn.00405a74
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x424c84], eax
call esi
push eax
call fcn.00405a74
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x424c88], eax
call esi
push eax
call fcn.00405a74
pop ecx
mov dword [0x424c90], eax
test eax, eax
je 0x412c1b
push 0x41f5e8
push edi
call esi
push eax
call fcn.00405a74
pop ecx
mov dword [0x424c8c], eax
mov eax, dword [0x424c8c]
cmp eax, ebx
je 0x412c73
cmp dword [0x424c90], ebx
je 0x412c73
push eax
call fcn.00405aef
push dword [0x424c90]
mov esi, eax
call fcn.00405aef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412c73
test edi, edi
je 0x412c73
call esi
test eax, eax
je 0x412c6a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412c6a
test byte [ebp - 0xc], 1
jne 0x412c73
or dword [ebp + 0x10], 0x200000
jmp 0x412cac
mov eax, dword [0x424c84]
cmp eax, ebx
je 0x412cac
push eax
call fcn.00405aef
pop ecx
test eax, eax
je 0x412cac
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412cac
mov eax, dword [0x424c88]
cmp eax, ebx
je 0x412cac
push eax
call fcn.00405aef
pop ecx
test eax, eax
je 0x412cac
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x424c80]
call fcn.00405aef
pop ecx
test eax, eax
je 0x412ccc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412cce
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x10003e80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
mov eax, 0x201
mov edx, 2
mul edx
seto cl
push ebx
push esi
push edi
mov esi, 0x200
neg ecx
or ecx, eax
push ecx
call fcn.100396e8
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add esp, 4
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea edx, [ebx + 2]
cmp edx, esi
jb 0x10003f05
push edi
add esi, 0x200
call fcn.1003a475
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100396e8
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add esp, 8
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea edx, [ebx + 2]
cmp edx, esi
jae 0x10003ec3
push edi
call fcn.1003a475
add esp, 4
pop edi
pop esi
lea eax, [ebx + 2]
pop ebx
pop ebp
ret 4

Function at 0x10003f20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
mov eax, 0x201
mov edx, 2
mul edx
seto cl
push ebx
push esi
push edi
mov esi, 0x200
neg ecx
or ecx, eax
push ecx
call fcn.100396e8
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add esp, 4
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea edx, [ebx + 2]
cmp edx, esi
jb 0x10003fa5
push edi
add esi, 0x200
call fcn.1003a475
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100396e8
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
add esp, 8
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov ebx, eax
lea edx, [ebx + 2]
cmp edx, esi
jae 0x10003f63
push edi
call fcn.1003a475
lea esi, [ebx + 2]
add esp, 4
test esi, esi
jne 0x10003fbe
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 4
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100396e8
mov edi, eax
add esp, 4
test edi, edi
jne 0x10003feb
mov eax, dword [ebp + 8]
push eax
call fcn.10003e80
jmp 0x10003ffa
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov eax, edi
call fcn.100041e0
neg eax
push edi
sbb esi, esi
call fcn.1003a475
add esp, 4
pop edi
lea eax, [esi + 1]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10004090
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
je 0x1000415c
xor ecx, ecx
mov eax, 0x201
mov edx, 2
mul edx
seto cl
push edi
mov esi, 0x200
neg ecx
or ecx, eax
push ecx
call fcn.100396e8
add esp, 4
mov edi, eax
mov eax, 0x100595e8
test ebx, ebx
je 0x100040d3
mov eax, ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
push 0x200
push edi
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.basic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, 0x200
jb 0x10004153
jmp 0x10004100
push edi
add esi, 0x200
call fcn.1003a475
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100396e8
add esp, 8
mov edi, eax
mov eax, 0x100595e8
test ebx, ebx
je 0x10004135
mov eax, ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
push esi
push edi
push eax
mov eax, dword [ebp + 0xc]
push eax
push str.basic
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
inc eax
cmp eax, esi
jae 0x10004100
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
test ebx, ebx
jne 0x10004177
push 2
call fcn.100396e8
add esp, 4
mov esi, eax
xor ecx, ecx
mov word [esi], cx
pop esi
pop ebx
pop ebp
ret 0xc
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004180
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100396e8
mov esi, eax
mov eax, ebx
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100041b0
sub eax, edx
sar eax, 1
push ebx
inc eax
push eax
push esi
call fcn.1003a7ed
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x100171d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push ebx
push edi
cmp eax, 0xffffffff
jne 0x100171f6
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 1
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor ebx, ebx
push ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor eax, eax
cmp eax, ebx
jg 0x10017226
jl 0x10017211
cmp edi, ebx
jae 0x10017226
mov eax, 2
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp edi, edi
jne 0x10017230
cmp ecx, eax
je 0x10017245
mov eax, 3
mov dword [esi], eax
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [edi + 1]
push eax
mov dword [ebp - 8], eax
call dword [0x1008a208]
mov ebx, eax
xor eax, eax
add esp, 4
cmp ebx, eax
jne 0x10017271
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 3
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], edi
je 0x100172a7
push ebx
call dword [0x1008a20c]
add esp, 4
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi], 2
mov eax, esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
xor eax, eax
call fcn.10016110
add esp, 8
cmp eax, 1
jne 0x100172c1
mov ecx, dword [ebp - 8]
mov byte [edi + ebx], 0
jmp 0x100172c3
mov ecx, edi
mov edx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push ebx
push edx
push edx
push esi
call fcn.100170d0
add esp, 0x14
pop edi
mov eax, esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10018950
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x10062648]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
push 0x1008bd00
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1008bccc]
cmp eax, 2
je 0x1001899b
push 0x1008bd00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.1003999f
mov esp, ebp
pop ebp
ret
push 0x1008b21c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [0x1008b21c]
push ecx
push str.Pool_d
push pe_nt_image_headers32
push 0x1008bac8
call fcn.100399ae
add esp, 0x10
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x1008bcc8], eax
test eax, eax
je 0x1001897c
cmp dword [0x1008bac0], 0
mov dword [esp + 0xc], 0
jle 0x10018aae
mov edx, dword [esp + 0xc]
mov eax, dword [0x1008b21c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.PID:_d_IID:_d_TDX:_d
lea ecx, [esp + 0x50]
push 0x1e
push ecx
call fcn.100399ae
lea edx, [esp + 0x28]
push edx
push 4
push 0x1008baa0
push 0x10018360
push 0
push 0
call fcn.1003bbba
mov ebx, eax
add esp, 0x30
cmp ebx, 0xffffffff
je 0x1001897c
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1001897c
lea eax, [esp + 0x40]
push eax
push 0
push 1
push 0
mov byte [esp + 0x40], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
lea edi, [esp + 0x14]
mov eax, 0x1008bab0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
call fcn.100199f0
push eax
push 0x1008bab0
lea esi, [esp + 0x30]
call fcn.100195e0
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [0x1008bac0]
jl 0x100189f0
mov byte [0x1008bd18], 1
mov dword [0x1008bccc], 0
push 0x1008bd00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.1003999f
mov esp, ebp
pop ebp
ret
Function at 0x10018c70
Capabilities:
Terminate thread

Disassembly:
push ecx
mov eax, dword [0x1008bccc]
push esi
push edi
cmp eax, 1
je 0x10018d5e
mov ecx, dword [0x1008bccc]
cmp ecx, 2
je 0x10018d5e
push 0x1008bce8
mov dword [0x1008bccc], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1008bab4]
mov esi, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, eax
je 0x10018d21
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10018cd3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x18]
push edx
call edi
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
push eax
call edi
cmp byte [esi + 0x21], 0
jne 0x10018d19
mov eax, dword [esi + 8]
cmp byte [eax + 0x21], 0
jne 0x10018cfe
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
jne 0x10018d19
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x21], 0
je 0x10018cf2
jmp 0x10018d19
mov eax, dword [esi + 4]
cmp byte [eax + 0x21], 0
jne 0x10018d17
cmp esi, dword [eax + 8]
jne 0x10018d17
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x21], 0
je 0x10018d07
mov esi, eax
cmp esi, dword [0x1008bab4]
jne 0x10018cb6
push 0x1008bce8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x1008bcc8]
push ecx
call edi
mov eax, 0x1008baa0
mov dword [0x1008bcc8], 0
call fcn.10018bc0
push 0x1008b21c
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x1008bccc], 2
pop edi
pop esi
pop ecx
ret

Function at 0x1001a570
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10062648]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x103
lea ecx, [ebp - 0x107]
push 0
push ecx
mov dword [ebp - 0x10c], eax
mov byte [ebp - 0x108], 0
call fcn.100469a0
add esp, 0xc
push str.Global3E03F8F9_DB26_4111_AADB_8F7EFF68F7BD
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x1001a64e
push 0x104
push 0
push 0
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x1001a647
push esi
lea edx, [ebp - 0x108]
push 0x104
push edx
call fcn.1003c192
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add esp, 0xc
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call edi
test eax, eax
je 0x1001a640
mov ecx, dword [ebp - 0x10c]
push eax
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x108]
push edx
push 0
push 0
call edi
test eax, eax
je 0x1001a640
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003999f
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1003999f
mov esp, ebp
pop ebp
ret
Function at 0x1002a080
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call esi
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1002a1ab
dec eax
je 0x1002a0e6
sub eax, 2
jne 0x1002a1f9
mov eax, dword [0x10064170]
cmp eax, 0xffffffff
je 0x1002a1f9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002a1f9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x10064170]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp dword [0x1008b94c], 0
mov esi, dword [ebp + 8]
mov dword [0x1008b218], esi
je 0x1002a101
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x1005983f
push 2
call fcn.1003d821
add esp, 8
call fcn.1002a210
call fcn.1002e330
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10064170], eax
cmp eax, 0xffffffff
je 0x1002a0f8
mov ecx, dword [0x10089af8]
mov esi, 8
cmp dword [0x10089b0c], esi
jae 0x1002a142
mov ecx, 0x10089af8
call fcn.10009630
mov ecx, 0x1008b438
call fcn.10004360
xor ecx, ecx
call fcn.10009630
call fcn.10032a00
mov ecx, dword [0x10089af8]
cmp dword [0x10089b0c], esi
jae 0x1002a170
mov ecx, 0x10089af8
call fcn.100015f0
push 0x1008b640
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call fcn.10001540
add esp, 4
test eax, eax
jne 0x1002a1f9
cmp dword [0x1008b94c], eax
jne 0x1002a19a
call fcn.1002e720
call fcn.10018950
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
call esi
mov eax, dword [0x10064170]
mov dword [0x1008b94c], 1
cmp eax, 0xffffffff
je 0x1002a1ef
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1002a1e2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [0x10064170]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [0x10064170]
push edx
call dword [sym.imp.KERNEL32.dll_TlsFree]
call fcn.10018c70
call fcn.10033620
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc