joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4217ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44c9a0
call fcn.0043316a
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00417072
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x4217f7
call fcn.00417072
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x421808
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x421815
or eax, 0xffffffff
jmp 0x421971
mov ecx, esi
call fcn.004212f3
mov dword [ebp - 0x14], eax
call fcn.0041a3e4
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x421893
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x421893
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x421893
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00418f71
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x421893
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x421893
mov ecx, ebx
call fcn.0041e567
test eax, eax
je 0x421893
push 0
mov ecx, ebx
call fcn.0041e582
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041bda3
push dword [ebp - 0x14]
call fcn.0041a33c
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004215b4
xor edi, edi
cmp eax, edi
je 0x4218f0
test byte [esi + 0x3c], 0x10
je 0x4218da
push 4
pop edi
mov ecx, esi
call fcn.0041e44e
test ax, 0x100
je 0x4218d0
push 5
pop edi
push edi
mov ecx, esi
call fcn.00419ed2
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x4218f0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041e755
or dword [ebp - 4], 0xffffffff
jmp 0x42191b
cmp dword [ebp - 0x28], edi
je 0x421929
push 1
mov ecx, ebx
call fcn.0041e582
cmp dword [ebp - 0x2c], edi
je 0x421939
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x421952
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x421952
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0042132d
cmp dword [esi + 0x58], edi
je 0x42196e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043320f
ret
Function at 0x42203b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x422081
call fcn.00417072
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x422081
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4220c4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4220ad
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4220ad
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4220c1
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x424556
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x424586
push dword [ebp + 8]
call edi
push eax
call fcn.00424d40
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4245b1
test byte [ebp - 4], 1
je 0x4245b1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4245b1
push dword [ebp + 8]
call edi
push eax
call fcn.00424d40
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42466b
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004244bb
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x4245e7
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004244bb
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x4245fd
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.004244bb
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42462a
push dword [ebp + 8]
call edi
push eax
call fcn.00424d40
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x424656
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00424d40
push ebx
call esi
test eax, eax
jne 0x424668
push dword [ebp + 8]
call edi
push eax
call fcn.00424d40
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x424693
test byte [ebp - 4], 1
jne 0x424693
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x424693
push dword [ebp + 8]
call edi
push eax
call fcn.00424d40
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x42636e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42639c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4263ba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004262d8
jmp 0x4263ba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4263ba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004262d8
test edi, edi
mov eax, edi
jne 0x4263a4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46a558]
test ecx, ecx
je 0x42647d
jmp 0x42636d
ret 8

Function at 0x432980
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x466b10]
jne 0x43298a
repz ret
jmp fcn.00439b9f
Function at 0x441638
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4676d0]
je 0x441653
inc edi
cmp edi, 0x17
jb 0x441644
cmp edi, 0x17
jae 0x4417d3
push ebp
push 3
call fcn.00446b30
cmp eax, 1
pop ecx
je 0x44179f
push 3
call fcn.00446b30
test eax, eax
pop ecx
jne 0x441687
cmp dword [0x466b30], 1
je 0x44179f
cmp ebx, 0xfc
je 0x4417d2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x46ad50
push ebp
call fcn.00437e1d
add esp, 0xc
test eax, eax
je 0x4416bd
push esi
push esi
push esi
push esi
push esi
call fcn.00432999
add esp, 0x14
push 0x104
mov esi, 0x46ad69
push esi
push 0
mov byte [0x46ae6d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x441701
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00437e1d
add esp, 0xc
test eax, eax
je 0x441701
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00432999
add esp, 0x14
push esi
call fcn.00432c20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x441746
push esi
call fcn.00432c20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46b064
push 0x457d14
sub ecx, eax
push ecx
push eax
call fcn.00437d0e
add esp, 0x14
test eax, eax
je 0x441746
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00432999
add esp, 0x14
jmp 0x441748
xor esi, esi
push 0x457d10
push ebx
push ebp
call fcn.00438654
add esp, 0xc
test eax, eax
je 0x441768
push esi
push esi
push esi
push esi
push esi
call fcn.00432999
add esp, 0x14
push dword [edi*8 + 0x4676d4]
push ebx
push ebp
call fcn.00438654
add esp, 0xc
test eax, eax
je 0x44178a
push esi
push esi
push esi
push esi
push esi
call fcn.00432999
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00446973
add esp, 0xc
jmp 0x4417d2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4417d2
cmp ebp, 0xffffffff
je 0x4417d2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4676d4]
push dword [esi]
call fcn.00432c20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x446973
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00439d85
xor ebx, ebx
cmp dword [0x46b2b8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x446a49
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x446b29
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x458e54
push edi
call esi
cmp eax, ebx
je 0x446b29
push eax
call fcn.00439d17
mov dword [esp], 0x458e44
push edi
mov dword [0x46b2b8], eax
call esi
push eax
call fcn.00439d17
mov dword [esp], 0x458e30
push edi
mov dword [0x46b2bc], eax
call esi
push eax
call fcn.00439d17
mov dword [0x46b2c0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004383e1
test eax, eax
pop ecx
pop ecx
je 0x446a17
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00432999
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x446a49
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00439d17
cmp eax, ebx
pop ecx
mov dword [0x46b2c8], eax
je 0x446a49
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00439d17
pop ecx
mov dword [0x46b2c4], eax
mov eax, dword [0x46b2c4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x446ace
cmp dword [0x46b2c8], ecx
je 0x446ace
push eax
call fcn.00439d8e
push dword [0x46b2c8]
mov esi, eax
call fcn.00439d8e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x446ace
cmp edi, ebx
je 0x446ace
call esi
cmp eax, ebx
je 0x446a9b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x446a9b
test byte [ebp - 0x18], 1
jne 0x446ace
lea eax, [ebp - 0x10]
push eax
call fcn.00438418
test eax, eax
pop ecx
je 0x446ab6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00432999
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x446ac5
or dword [ebp + 0x10], 0x200000
jmp 0x446b09
or dword [ebp + 0x10], 0x40000
jmp 0x446b09
mov eax, dword [0x46b2bc]
cmp eax, dword [ebp - 8]
je 0x446b09
push eax
call fcn.00439d8e
cmp eax, ebx
pop ecx
je 0x446b09
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x446b09
mov eax, dword [0x46b2c0]
cmp eax, dword [ebp - 8]
je 0x446b09
push eax
call fcn.00439d8e
cmp eax, ebx
pop ecx
je 0x446b09
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46b2b8]
call fcn.00439d8e
cmp eax, ebx
pop ecx
je 0x446b29
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x446b2b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x449be4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00449b79
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004328f0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x449c33
cmp dword [ebp - 0x1c], 5
jb 0x449c4b
jmp 0x449c47
cmp dword [ebp - 0x10], 1
jne 0x449c4b
cmp dword [ebp - 0x1c], 4
ja 0x449c47
jne 0x449c4b
cmp dword [ebp - 0x18], 0
jbe 0x449c4b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x459700
call fcn.00449a6a
test eax, eax
jge 0x449c6c
mov byte [0x468990], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00432980
add ebp, 0x78
leave
ret
Function at 0x72881b46
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
push edi
cmp ebx, ecx
jne 0x72881b62
mov eax, dword [esi + 0x28]
jmp 0x72881b64
xor eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x7288a034]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov byte [ebp - 8], cl
mov dword [ebp - 4], ecx
call edi
push dword [esi + 0x10]
push dword [esi + 0x14]
push dword [esi + 0xc]
call fcn.72881bcd
add esp, 0xc
test ebx, ebx
jne 0x72881bab
push dword [ebp - 0x14]
jmp 0x72881bad
push 0
push dword [0x7288a034]
call edi
mov edi, dword [ebp - 4]
test edi, edi
je 0x72881bc1
call fcn.72887365
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x72881cec
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea esi, [ebx + 4]
mov eax, dword [esi]
cmp eax, 2
je 0x72881d5b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov eax, dword [0x7288a3c0]
mov ecx, dword [esi]
cmp ecx, 2
je 0x72881d5a
pause
dec eax
test eax, eax
jg 0x72881d16
call edi
sub eax, dword [ebp - 4]
cmp eax, 0x64
jb 0x72881d0b
xor ecx, ecx
inc ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x72881d5a
cmp dword [ebx + 0xc], eax
jne 0x72881d4f
lea esi, [ebp - 0xc]
mov byte [ebp - 0xc], 1
call fcn.728821a0
mov dword [ebx + 0xc], eax
push 0xffffffffffffffff
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
leave
ret

Function at 0x728820c0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push dword [0x7288a034]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [esi + 0x14]
cmp dword [eax + 4], 1
je 0x72882131
push edi
mov edi, dword [esi + 0x18]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp eax, 3
jne 0x72882105
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x72882130
mov eax, dword [esi]
imul eax, eax, 0x14
lea eax, [eax + ecx + 0x30]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x18]
add dword [eax + 4], ecx
jmp 0x72882130
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp eax, 6
jne 0x72882130
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x72882130
mov eax, dword [esi]
imul eax, eax, 0x28
lea eax, [eax + ecx + 0x38]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ecx + 0x20]
add dword [eax + 8], edx
mov ecx, dword [ecx + 0x24]
adc dword [eax + 0xc], ecx
pop edi
pop esi
ret
Function at 0x72882950
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
push esi
push edi
push dword [0x7288a034]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [eax + 0x18]
mov edx, dword [esi]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
push eax
push edi
push ebx
mov ecx, esi
mov dword [esp + 0x14], eax
call dword [edx + 0x10]
test al, al
je 0x728829a8
mov esi, dword [esi + 0x30]
test esi, esi
je 0x728829a3
push dword [edi + 4]
push dword [edi]
mov edi, esi
push dword [ebx + 4]
push dword [ebx]
push 0
push dword [esp + 0x1c]
call fcn.728830fa
xor eax, eax
inc eax
jmp 0x728829e8
mov edx, dword [esp + 8]
cmp byte [edx + esi + 0x34], 0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
jne 0x728829bf
sub eax, 1
sbb ecx, 0
mov dword [edi], eax
mov dword [edi + 4], ecx
mov edi, dword [esi + 0x30]
test edi, edi
je 0x728829dd
mov eax, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
push esi
push eax
push esi
push eax
push 1
push edx
call fcn.728830fa
mov eax, dword [esp + 0xc]
call fcn.728846e8
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x7288408f
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea esi, [edi + 4]
mov eax, dword [esi]
cmp eax, 2
je 0x72884112
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov eax, dword [0x7288a3c4]
mov ecx, dword [esi]
cmp ecx, 2
je 0x72884111
pause
dec eax
test eax, eax
jg 0x728840b9
call ebx
sub eax, dword [ebp - 4]
cmp eax, 0x64
jb 0x728840ae
xor ecx, ecx
inc ecx
xor eax, eax
lock cmpxchg dword [esi], ecx
cmp eax, 2
je 0x72884111
cmp dword [edi + 0xc], 0
jne 0x72884106
test eax, eax
jne 0x728840fa
lea esi, [ebp - 0xc]
mov byte [ebp - 0xc], 1
call fcn.728821a0
mov dword [edi + 0xc], eax
jmp 0x72884106
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
cmp dword [edi + 0xc], 0
je 0x728840fa
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop ebx
pop esi
leave
ret

Function at 0x72884225
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [0x7288a034]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov ecx, dword [edx + 0x10]
test ecx, ecx
je 0x7288425e
lea edi, [ecx - 1]
lea ebx, [edx + 0x10]
mov eax, ecx
lock cmpxchg dword [ebx], edi
cmp eax, ecx
jne 0x72884240
mov esi, dword [edx + 0xc]
sub esi, ecx
jmp 0x72884269
mov eax, dword [ebp - 4]
or esi, 0xffffffff
call fcn.728846e8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x72884319
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x7288a034]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x72884337
mov ecx, dword [eax + 0x14]
cmp dword [ecx + 4], 1
je 0x72884337
jmp fcn.728846e8
ret
Function at 0x7288433d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
push dword [0x7288a034]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x72884385
mov eax, dword [edi + 0x14]
cmp dword [eax + 4], 1
je 0x72884385
mov eax, dword [edi + 0x18]
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp + 0xc]
lea esi, [eax + 0x14]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
call fcn.7288411a
mov eax, edi
call fcn.728846e8
pop esi
pop edi
pop ebp
jmp sym.VCOMP100.DLL__vcomp_barrier
pop edi
pop ebp
ret

Function at 0x7288438d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push dword [0x7288a034]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp dword [esi + 0xc], 0
mov ebx, dword [esi + 0x18]
jne 0x728843bd
lea edi, [ebx + 0x14]
call fcn.7288408f
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
add dword [esi + 0xc], 4
mov eax, dword [esi + 0xc]
mov edi, dword [eax - 4]
dec dword [esi + 8]
jne 0x728843d0
and dword [esi + 0xc], 0
cmp dword [esi + 0xc], 0
jne 0x728843dd
mov eax, esi
call fcn.728846e8
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x72884628
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x10
mov eax, edx
mov edx, dword [edx + 0x3c]
add edx, eax
mov ecx, dword [edx + ecx*8 + 0x78]
mov edx, dword [eax + ecx + 0x18]
mov dword [esp + 0xc], edx
test edx, edx
je 0x728846a4
mov edx, dword [esp + 0x28]
invalid
je 0x72884654

Function at 0x728846be
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x7288a183]
mov dword [esp], eax
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov edx, ecx

Function at 0x728857f4
Capabilities:
Allocate thread local storage
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
cmp ebx, 1
jne 0x7288582d
push esi
push edi
call fcn.72887df0
mov eax, 0x72881104
mov esi, 0x72881108
mov edi, eax
cmp eax, esi
jae 0x7288582b
mov eax, dword [edi]
test eax, eax
je 0x72885824
call eax
add edi, 4
cmp edi, esi
jb 0x7288581c
pop edi
pop esi
and dword [0x7288a3a8], 0
cmp ebx, 1
jne 0x72885866
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x7288a034], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x7288585a
mov dword [0x7288a010], eax
call fcn.728846be
call fcn.728859b1
jmp 0x72885880
test ebx, ebx
jne 0x72885871
call fcn.7288588d
jmp 0x72885880
cmp ebx, 2
je 0x72885880
cmp ebx, 3
jne 0x72885880
call fcn.728858e0
xor eax, eax
inc eax
pop ebx
leave
ret 0xc
Function at 0x72887aae
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
xor eax, eax
push 0x208
mov word [esp + 0x1c], ax
xor esi, esi
lea eax, [esp + 0x1e]
push esi
push eax
call fcn.72888170
add esp, 0xc
push esi
push esi
mov dword [esp + 0x18], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0x72881168
call esi
mov edi, eax
lea eax, [edi + edi]
cmp eax, edi
ja 0x72887b23
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.72887da8
mov esp, ebp
pop ebp
ret
push eax
call fcn.72881c36
pop ecx
push edi
push eax
xor ecx, ecx
push 0x72881174
mov dword [esp + 0x18], eax
mov word [eax], cx
mov ebx, eax
call esi
test eax, eax
je 0x72887bbe
mov eax, ebx
cmp word [eax], 0
je 0x72887bbe
mov edi, 0x104
movzx eax, word [ebx]
cmp eax, 0x20
je 0x72887b5c
cmp eax, 0x3b
jne 0x72887b61
add ebx, 2
jmp 0x72887b4f
movzx eax, word [ebx]
test ax, ax
je 0x72887bbe
xor edx, edx
lea ecx, [esp + 0x18]
cmp ax, 0x3b
je 0x72887b8b
inc edx
cmp edx, edi
jge 0x72887b8b
add ebx, 2
mov word [ecx], ax
movzx eax, word [ebx]
add ecx, 2
test ax, ax
jne 0x72887b6f
xor eax, eax
mov word [ecx], ax
test edx, edx
je 0x72887bb8
cmp edx, edi
jge 0x72887bb8
push dword [esp + 0x14]
lea edx, [esp + 0x14]
push 0x72881180
lea ecx, [esp + 0x20]
call fcn.728874a4
mov esi, dword [esp + 0x18]
pop ecx
pop ecx
test esi, esi
jne 0x72887bc0
cmp word [ebx], 0
jne 0x72887b4f
xor esi, esi
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, esi
jmp 0x72887b0e

Function at 0x72887cc7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x7288a3dc]
test eax, eax
jne 0x72887ced
call fcn.72887bdf
mov dword [0x7288a3dc], eax
test eax, eax
jne 0x72887ced
mov eax, 0x72880000
mov dword [0x7288a3dc], eax
mov ecx, dword [ebp + 8]
sar ecx, 4
inc ecx
movzx ecx, cx
push 6
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x72887d0c
mov eax, 0x728811c8
pop ebp
ret
push eax
push dword [0x7288a3dc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x72887d24
mov eax, 0x728811cc
pop ebp
ret
mov ecx, dword [ebp + 8]
and ecx, 0x8000000f
jns 0x72887d34
dec ecx
or ecx, 0xfffffff0
inc ecx
je 0x72887d40
dec ecx
movzx edx, word [eax]
lea eax, [eax + edx*2 + 2]
jne 0x72887d36
cmp word [eax], 0
jne 0x72887d4d
mov eax, 0x728811d0
pop ebp
ret
add eax, 2
pop ebp
ret

Function at 0x72887da8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x72887db2
repz ret
jmp fcn.72887fb4