joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10040d6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x10040d7c
xor eax, eax
leave
ret
and dword [ebp - 4], 0
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor esi, esi
push eax
inc esi
call fcn.10041b0e
mov ebx, eax
push ebx
call fcn.10046174
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10040ea0
push 0x1009bbd8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
call fcn.10040543
pop ecx
test eax, eax
jne 0x10040dc1
xor esi, esi
jmp 0x10040e8a
cmp byte [0x1009be77], 0
je 0x10040dd4
push 0x72766c72
call fcn.1003f982
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov byte [0x1009be77], 1
call fcn.10041b0e
pop ecx
cmp eax, ebx
jne 0x10040df5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x10040e21
push edi
call fcn.1004617f
lea eax, [ebp - 4]
push eax
call fcn.10041b0e
mov ebx, eax
push ebx
call fcn.10046174
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10040e21
push 0x72766c73
call fcn.1003f982
xor esi, esi
cmp dword [ebp + 0x14], 0
jne 0x10040e2f
cmp ebx, 0xea60
ja 0x10040dba
test esi, esi
je 0x10040e45
push dword [ebp + 0xc]
push dword [ebp - 4]
push ebx
push edi
call fcn.10041cc7
add esp, 0x10
mov esi, eax
mov byte [0x1009be77], 0
test esi, esi
je 0x10040e80
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10040e6f
cmp dword [ebp - 8], ebx
jne 0x10040e6f
xor esi, esi
inc esi
jmp 0x10040e71
xor esi, esi
push ebx
push edi
push dword [ebp + 0x10]
call fcn.10041f97
add esp, 0xc
jmp 0x10040e8a
push 0x74697970
call fcn.1003f982
push 0x1009bbd8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x10040ea0
push edi
call fcn.1004617f
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x10041f97
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x10041fdf
push esi
push 1
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.1003bc8f
mov esi, eax
cmp esi, 0xffffffff
je 0x10041fde
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebp
ret
Function at 0x10041fe1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
test dword [0x1009bc14], 0x2000
je 0x1004200d
call fcn.100435bc
jmp 0x100420a2
push ebx
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.10043691
pop ecx
pop ecx
test eax, eax
je 0x100420a1
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x10009b18
call fcn.10058e79
call fcn.10040a9d
test al, al
je 0x1004209f
push edi
call fcn.10040ca8
push 1
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.10040ae2
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x1004209e
push esi
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
call fcn.10040d6d
add esp, 0x10
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
test esi, esi
jne 0x1004208f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1004209e
push ebx
push 0x1009bc64
push eax
call fcn.1003fcec
add esp, 0xc
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10044d52
leave
ret
Function at 0x10042ae2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], ebx
mov esi, ebx
mov byte [edi], 1
call fcn.10043513
mov dword [ebp - 0x220], eax
cmp eax, 3
je 0x10042cfc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.10042ab7
pop ecx
pop ecx
test eax, eax
je 0x10042cfc
xor eax, eax
inc eax
push eax
push ebx
push 0x80
push 3
push ebx
push eax
push SysReAllocString
lea eax, [ebp - 0x20c]
push eax
call fcn.1003bc8f
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x210]
cmp ecx, 0xffffffff
jne 0x10042b9a
cmp eax, 0x20
jne 0x10042b90
push 0x1c8016
call fcn.1003f982
mov eax, ebx
mov byte [edi], al
jmp 0x10042cfc
cmp eax, 5
je 0x10042b87
xor eax, eax
inc eax
jmp 0x10042b89
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi - 0x8c]
cmp eax, 0xf74
ja 0x10042ce6
push edi
call fcn.1003f916
mov esi, eax
test esi, esi
je 0x10042ce6
push ebx
lea eax, [ebp - 0x218]
push eax
push edi
push esi
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10042ce6
cmp edi, dword [ebp - 0x218]
jne 0x10042ce6
push ebx
push edi
push esi
call fcn.100409c1
add esp, 0xc
test eax, eax
je 0x10042ce6
cmp dword [esi + 0x78], ebx
jne 0x10042ce6
mov eax, dword [esi + 0x7c]
push 0xc
xor edx, edx
pop ecx
div ecx
mov ecx, eax
imul ecx, ecx, 0xc
mov dword [ebp - 0x214], eax
cmp dword [esi + 0x7c], ecx
jne 0x10042ce6
lea edi, [esi + 0x80]
test eax, eax
jle 0x10042cba
cmp dword [edi], 0x2102
ja 0x10042c60
je 0x10042c80
cmp dword [edi], 0x10
je 0x10042c80
cmp dword [edi], 0x195b
je 0x10042c80
cmp dword [edi], 0x19df
jbe 0x10042c90
cmp dword [edi], 0x19e2
jbe 0x10042c80
jmp 0x10042c90
cmp dword [edi], 0x24c8
jb 0x10042c90
cmp dword [edi], 0x24cb
jbe 0x10042c80
cmp dword [edi], 0x24cd
je 0x10042c80
cmp dword [edi], 0x2696
jne 0x10042c90
push dword [edi + 4]
push dword [edi]
call fcn.1003fe05
mov eax, dword [ebp - 0x214]
cmp dword [edi], 0x195b
je 0x10042ca8
cmp dword [edi], 0x19e1
je 0x10042ca8
cmp dword [edi], 0x24cd
jne 0x10042ca9
inc ebx
add edi, 0xc
dec eax
mov dword [ebp - 0x214], eax
jne 0x10042c37
cmp ebx, 3
je 0x10042cc8
call fcn.10056ec4
test eax, eax
je 0x10042cd3
cmp ebx, 2
jl 0x10042cd3
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], 1
jmp 0x10042ce6
xor eax, eax
inc eax
cmp dword [ebp - 0x220], eax
jne 0x10042ce6
mov ecx, dword [ebp - 0x21c]
mov byte [ecx], al
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10042cfc
push esi
call fcn.1003f926
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret
Function at 0x10042e98
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.10043ac2
and dword [ebp - 0x38], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x38]
push eax
push 0x11
call fcn.1003fe05
push dword [ebp - 0x24]
push 0x12
call fcn.1003fe05
mov edi, SysReAllocString
xor ecx, ecx
mov eax, edi
cpuid
lea esi, [ebp - 0x14]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp dword [ebp - 0x14], edi
jbe 0x10042f1f
xor ecx, ecx
lea eax, [edi + 1]
cpuid
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
test dword [ebp - 8], 0x20000000
je 0x10042f1b
push 9
jmp 0x10042f24
push 0
jmp 0x10042f24
push 0xffff
push 0x2699
call fcn.1003fe05
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret

Function at 0x10043322
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push pe_nt_image_headers32
lea eax, [ebp - 0x11c]
push esi
push eax
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x120], esi
call fcn.1004562d
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 1
push esi
push 0x10010940
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100433ca
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x134]
push eax
push esi
push 0x1001096c
push dword [ebp - 0x128]
mov dword [ebp - 0x12c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100433bc
push dword [ebp - 0x130]
push 0x22df
call fcn.1003fe05
push dword [ebp - 0x128]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100433d4
push 0x1c800b
call fcn.1003f982
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
pop esi
test eax, eax
je 0x1004345f
push dword [ebp - 0x114]
push 0x1a
call fcn.1003fe05
movzx ecx, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
shl ecx, 0x10
or ecx, eax
push ecx
push 0x43
call fcn.1003fe05
movzx eax, word [ebp - 8]
push eax
push 0x3a5
call fcn.1003fe05
push dword [ebp - 0x11c]
push 0x22e1
call fcn.1003fe05
push dword [ebp - 0x118]
push 0x22e2
call fcn.1003fe05
movzx eax, word [ebp - 0xc]
push eax
push 0x22e4
call fcn.1003fe05
movzx eax, word [ebp - 0xa]
push eax
push 0x22e5
call fcn.1003fe05
lea eax, [ebp - 0x124]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
test eax, eax
je 0x10043498
push dword [ebp - 0x124]
push 0x1af7
call fcn.1003fe05
jmp 0x100434ae
push 0xffffffffffffffff
push 0x1af7
call fcn.1003fe05
push 0x1c800c
call fcn.1003f982
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044d52
leave
ret
Function at 0x100434c8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add ecx, 0x80000
adc eax, 0
shrd ecx, eax, 0x14
push ecx
push 0xc
shr eax, 0x14
call fcn.1003fe05
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10044d52
leave
ret

Function at 0x10043691
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
call fcn.10056cbf
test eax, eax
je 0x100436b4
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.1003bd14
pop ecx
pop ecx
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call fcn.10043a14
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x10043742
push edi
call fcn.1003fcc4
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x100436f5
push 0xffffffffffffffff
push 0x100029ac
push dword [ebp + 0xc]
push edi
call fcn.10047822
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x10043742
push 0xffffffffffffffff
push 0x100109bc
push dword [ebp + 0xc]
push edi
call fcn.10047822
xor ebx, ebx
add esp, 0x10
cmp eax, 0x50
setne bl
test ebx, ebx
je 0x10043742
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10043742
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ebx, [eax - 0xb7]
neg ebx
sbb ebx, ebx
inc ebx
jne 0x10043742
push 0x1cb247
call fcn.1003f982
pop edi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x10043892
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
mov dword [ebp - 4], esi
test eax, eax
jne 0x100438b2
push 0x1cb21e
call fcn.1003f982
jmp 0x10043a11
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x100438c9
push 0x1cb21f
call fcn.1003f982
jmp 0x10043a10
push ebx
mov ebx, dword [ebp + 8]
push 2
pop ecx
cmp ebx, ecx
je 0x100438e8
cmp ebx, 8
je 0x100438e8
cmp ebx, 3
je 0x100438e8
push 0x1cb220
jmp 0x100439e3
cmp dword [eax], esi
je 0x100438f6
push 0x1cb221
call fcn.1003f982
cmp dword [edi], esi
je 0x10043904
push 0x1cb222
call fcn.1003f982
push edi
push esi
push ebx
mov dword [edi], esi
call sub.Secur32.dll_GetUserNameExW
movzx esi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x100439ea
cmp eax, 0xea
jne 0x100439ea
mov eax, dword [edi]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10046174
mov esi, dword [ebp + 0xc]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x10043953
push 0x1cb240
jmp 0x100439cb
mov eax, dword [edi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push ecx
push ebx
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1004396e
push 0x1cb241
jmp 0x100439cb
mov eax, dword [edi]
dec eax
cmp dword [ebp - 4], eax
je 0x10043980
push 0x1cb242
call fcn.1003f982
push 2
pop eax
cmp ebx, eax
jne 0x1004399c
push dword [edi]
mov eax, dword [esi]
call fcn.10043830
pop ecx
test eax, eax
jne 0x10043a0f
push 0x1cb243
jmp 0x100439cb
cmp ebx, 8
jne 0x100439d9
cmp dword [esi], 0
jne 0x100439ad
push 0x1cb21c
jmp 0x100439c1
push 0x40
push dword [esi]
call fcn.10047e2e
pop ecx
pop ecx
test eax, eax
jne 0x100439d2
push 0x1cb21d
call fcn.1003f982
push 0x1cb244
call fcn.1003f982
jmp 0x100439f7
xor ecx, ecx
mov word [eax], cx
jmp 0x10043a0f
cmp ebx, 3
je 0x10043a0f
push 0x1cb245
call fcn.1003f982
jmp 0x10043a0f
push 0x1cb223
call fcn.1003f982
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x10043a07
push dword [esi]
call fcn.1004617f
and dword [esi], 0
pop ecx
cmp dword [edi], 0
je 0x10043a0f
and dword [edi], 0
pop ebx
pop edi
pop esi
leave
ret

Function at 0x10043a14
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0x1c
push edi
xor esi, esi
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x10043a8f
push dword [ebp + 8]
push edi
push 0x10010980
call fcn.10058e79
inc esi
cmp dword [ebp + 0xc], 0
je 0x10043a8f
push edi
call fcn.10059ac2
test eax, eax
jne 0x10043a8f
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1003fcec
add esp, 0xc
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x100109a8
call fcn.10059a01
lea eax, [ebp - 0x20c]
push eax
call fcn.10059ae1
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10044d52
leave
ret
Function at 0x10043be9
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40c], eax
test esi, esi
jne 0x10043c32
xor eax, eax
jmp 0x10043dac
and dword [esi], 0
push ebx
push edi
xor edi, edi
inc edi
push edi
push eax
push ecx
push 0x400
lea eax, [ebp - 0x404]
push eax
call fcn.10057fb7
mov ecx, dword [ebp - 0x40c]
and dword [ebp - 0x408], 0
and dword [ebp - 0x41c], 0
mov ebx, eax
mov eax, ecx
shr eax, 0x1a
not eax
and eax, edi
mov dword [ebp - 0x410], eax
test ebx, ebx
je 0x10043c99
mov eax, ecx
shr eax, 0x17
push ebx
and eax, edi
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov ecx, dword [ebp - 0x40c]
mov dword [esi], eax
mov eax, dword [ebp - 0x410]
cmp dword [esi], 0
jne 0x10043d46
test eax, eax
je 0x10043d46
and dword [ebp - 0x418], 0
push edi
lea eax, [ebp - 0x414]
push eax
push ecx
call fcn.10057e3e
test eax, eax
je 0x10043d28
mov eax, dword [ebp - 0x40c]
shr eax, 0x19
push ebx
and eax, edi
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x418], eax
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x40c]
call fcn.10057f72
mov ecx, dword [ebp - 0x418]
cmp ecx, 5
jne 0x10043d2e
cmp dword [ebp - 0x41c], 0
jne 0x10043d2e
mov eax, dword [ebp - 0x410]
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x41c], edi
jmp 0x10043c73
mov ecx, dword [ebp - 0x418]
cmp dword [esi], 0
je 0x10043d46
xor eax, eax
cmp ecx, 0xb7
setne al
mov dword [ebp - 0x408], eax
jmp 0x10043d4c
mov eax, dword [ebp - 0x408]
cmp dword [esi], 0
je 0x10043d56
cmp dword [esi], 0xffffffff
jne 0x10043d76
cmp dword [ebp - 0x410], 0
je 0x10043d69
push 0x6b633230
call fcn.1003f982
and dword [esi], 0
xor eax, eax
mov dword [ebp - 0x408], eax
xor edi, edi
mov ecx, dword [ebp - 0x420]
test ecx, ecx
je 0x10043d9c
test ebx, ebx
jne 0x10043d89
mov ebx, 0x1000fa75
push dword [ebp + 0x14]
push ecx
push ebx
call fcn.10043b93
mov eax, dword [ebp - 0x408]
add esp, 0xc
mov ecx, dword [ebp - 0x424]
test ecx, ecx
je 0x10043da8
mov dword [ecx], eax
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10044d52
leave
ret 0x1c
Function at 0x10043e59
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x10099bf8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], eax
mov eax, dword [0x10099bd8]
push ebx
mov ebx, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x10044034
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov dword [ebp - 0x2a0], edi
test edi, edi
je 0x10044033
push esi
xor esi, esi
cmp dword [edi], esi
jne 0x10044032
mov dword [edi], 1
cmp ebx, 0x7e
ja 0x10044030
mov ebx, dword [edi + ebx*4 + 4]
mov dword [ebp - 0x2a4], ebx
test ebx, ebx
je 0x10044030
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.1004562d
mov eax, dword [ebp + 0x14]
and eax, 3
add esp, 0xc
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x298], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push ebx
mov dword [ebp - 0x294], eax
call fcn.1004415c
cmp eax, dword [ebx + 0x24]
jg 0x10043f55
mov ecx, dword [ebx + 0x48]
cmp ecx, dword [ebx + 0x44]
jae 0x10043f55
test byte [ebx + 4], 1
jne 0x10043f55
test dword [ebx + 4], 0x400
jne 0x10043f55
test byte [ebp + 0x14], 0x10
jne 0x10043f55
cmp dword [0x1009c128], esi
je 0x10043f55
push esi
lea eax, [ebp - 0x28c]
push eax
push 0x20
push 1
call dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx eax, ax
mov dword [ebp - 0x290], eax
jmp 0x10043f57
mov eax, esi
mov edi, dword [ebp - 0x298]
mov esi, ebx
mov ebx, dword [ebp - 0x29c]
push ebx
push eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push edi
call fcn.10044251
test byte [esi + 4], 2
jne 0x10043f96
mov esi, dword [esi]
mov eax, dword [ebp - 0x290]
test esi, esi
jne 0x10043f65
mov ebx, dword [ebp - 0x2a4]
test edi, edi
mov edi, dword [ebp - 0x2a0]
jne 0x10043fdd
test byte [0x1009bbc0], 2
je 0x10043fdd
push dword [ebp - 0x29c]
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push dword [ebx + 8]
push dword [ebx + 0x38]
push dword [ebx + 0x34]
push 0x10004eb0
push dword [0x1009b7b4]
push dword [0x1009b7b0]
call fcn.10044043
mov esi, dword [ebx + 0xc]
cmp esi, 0xffffffff
je 0x1004402b
mov esi, dword [edi + esi*4 + 4]
test esi, esi
je 0x1004402b
mov edi, dword [ebp - 0x298]
mov ebx, dword [ebp - 0x290]
push 0
push ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push edi
call fcn.10044251
test byte [esi + 4], 2
jne 0x10044025
mov esi, dword [esi]
test esi, esi
jne 0x10043ff9
mov edi, dword [ebp - 0x2a0]
and dword [edi], 0
jmp 0x10044032
mov dword [edi], esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10044d52
leave
ret 0x10
Function at 0x100443d6
Capabilities:
Accept command line arguments

Disassembly:
push 8
push 0x10065410
call fcn.100491c2
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10044464
call fcn.10049190
test eax, eax
jne 0x100443fa
xor eax, eax
jmp 0x10044530
call fcn.10048570
test eax, eax
jne 0x1004440a
call fcn.100491ae
jmp 0x100443f3
call fcn.10049144
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100a4814], eax
call fcn.100490ad
mov dword [0x1009c15c], eax
call fcn.10048ae2
test eax, eax
jns 0x10044434
call fcn.10048249
jmp 0x10044403
call fcn.10048ff2
test eax, eax
js 0x1004445d
call fcn.10048d7a
test eax, eax
js 0x1004445d
push 0
call fcn.100488c8
pop ecx
test eax, eax
jne 0x1004445d
inc dword [0x1009c158]
jmp 0x1004452d
call fcn.10048d27
jmp 0x1004442d
xor edi, edi
cmp eax, edi
jne 0x100444c3
cmp dword [0x1009c158], edi
jle 0x100443f3
dec dword [0x1009c158]
mov dword [ebp - 4], edi
cmp dword [0x1009c4d4], edi
jne 0x10044488
call fcn.10048ab5
cmp dword [ebp + 0x10], edi
jne 0x1004449c
call fcn.10048d27
call fcn.10048249
call fcn.100491ae
mov dword [ebp - 4], 0xfffffffe
call fcn.100444af
jmp 0x1004452d
cmp eax, 2
jne 0x10044521
call fcn.10048215
push 0x214
push 1
call fcn.10048730
pop ecx
pop ecx
mov esi, eax
cmp esi, edi
je 0x100443f3
push esi
push dword [0x10099c00]
push dword [0x1009c4b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
call eax
test eax, eax
je 0x10044515
push edi
push esi
call fcn.1004828a
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
or dword [esi + 4], 0xffffffff
jmp 0x1004452d
push esi
call fcn.100478f8
pop ecx
jmp 0x100443f3
cmp eax, 3
jne 0x1004452d
push edi
call fcn.10048502
pop ecx
xor eax, eax
inc eax
call fcn.10049207
ret 0xc

Function at 0x10044d52
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10099bf8]
jne fcn.10045df9
repz ret
Function at 0x10045df9
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1009c280], eax
mov dword [0x1009c27c], ecx
mov dword [0x1009c278], edx
mov dword [0x1009c274], ebx
mov dword [0x1009c270], esi
mov dword [0x1009c26c], edi
mov word [0x1009c298], ss
mov word [0x1009c28c], cs
mov word [0x1009c268], ds
mov word [0x1009c264], es
mov word [0x1009c260], fs
mov word [0x1009c25c], gs
pushfd
pop dword [0x1009c290]
mov eax, dword [ebp]
mov dword [0x1009c284], eax
mov eax, dword [ebp + 4]
mov dword [0x1009c288], eax
lea eax, [ebp + 8]
mov dword [0x1009c294], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1009c1d0], 0x10001
mov eax, dword [0x1009c288]
mov dword [0x1009c184], eax
mov dword [0x1009c178], 0xc0000409
mov dword [0x1009c17c], 1
mov eax, dword [0x10099bf8]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10099bfc]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1009c1c8], eax
push 1
call fcn.1004cb7b
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x10010bdc
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1009c1c8], 0
jne 0x10045ee5
push 1
call fcn.1004cb7b
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret