joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053d8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405429
xor eax, eax
jmp 0x405450
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405450
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405425
call esi
pop esi
leave
ret 4

Function at 0x40548a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421510], 0x44
push eax
xor eax, eax
push 0x421510
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054c9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405553
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405947
mov edi, eax
cmp edi, 0xffffffff
je 0x405594
test byte [esp + 0x10], 1
push esi
je 0x405576
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40557c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405585
xor eax, eax
inc eax
jmp 0x405596
test byte [esp + 0x10], 4
jne 0x405594
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40559b
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405859
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055da
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423788], eax
jmp 0x405764
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4055f4
test eax, eax
je 0x405712
test bl, 2
je 0x405712
mov esi, 0x420d10
push edi
push esi
call fcn.00405cf9
cmp dword [ebp + 8], 0
je 0x405613
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405619
push edi
call fcn.004057b2
cmp byte [edi], 0
jne 0x405627
cmp byte [0x420d10], 0x5c
jne 0x405632
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405708
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405796
cmp byte [eax], 0
je 0x405678
cmp byte [ebp - 0x1c], 0
je 0x405678
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40568e
mov al, byte [esi + 1]
test al, al
je 0x4056e7
cmp al, 0x2e
jne 0x40568e
cmp byte [esi + 2], 0
je 0x4056e7
push esi
push ebx
call fcn.00405cf9
test byte [ebp - 0x14c], 0x10
je 0x4056b3
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056e7
push dword [ebp + 0xc]
push edi
call fcn.0040559b
jmp 0x4056e7
push dword [ebp - 4]
push edi
call fcn.00405553
test eax, eax
jne 0x4056df
cmp dword [ebp - 4], eax
je 0x4056d7
push edi
push 0xfffffffffffffff1
call fcn.00404f12
push 0
push edi
call fcn.00405bb4
jmp 0x4056e7
inc dword [0x423788]
jmp 0x4056e7
push edi
push 0xfffffffffffffff2
call fcn.00404f12
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405656
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405712
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405764
cmp dword [ebp - 0xc], esi
jne 0x405726
inc dword [0x423788]
jmp 0x405764
push edi
call fcn.00405ffd
test eax, eax
je 0x405764
push edi
call fcn.0040576b
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405553
test eax, eax
jne 0x40575c
cmp dword [ebp - 4], esi
je 0x40571e
push edi
push 0xfffffffffffffff1
call fcn.00404f12
push esi
push edi
call fcn.00405bb4
jmp 0x405764
push edi
push 0xffffffffffffffe5
call fcn.00404f12
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405859
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421110
push esi
call fcn.00405cf9
push esi
call fcn.00405804
mov edi, eax
test edi, edi
jne 0x40587a
xor eax, eax
jmp 0x4058cc
push edi
call fcn.00405f64
test byte [0x423718], 0x80
je 0x405893
mov al, byte [edi]
test al, al
je 0x405876
cmp al, 0x5c
je 0x405876
sub edi, esi
jmp 0x4058ab
call fcn.00405ffd
test eax, eax
je 0x4058a5
test byte [eax], 0x10
je 0x405876
push esi
call fcn.004057b2
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405897
call fcn.0040576b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405947
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405966
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x40596c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40599b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093ac]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4059e0
test edi, edi
jne 0x4059a6
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4059da
Function at 0x405a42
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x421a98
push 0x4093c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405a90
push 1
push 0
push esi
call fcn.0040596c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405baf
cmp eax, ebx
jg 0x405baf
mov esi, 0x421e98
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405baf
cmp eax, ebx
jg 0x405baf
push esi
push edi
push str._s_s_r_n
push 0x421698
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423710]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d1b
push 4
push 0xc0000000
push esi
call fcn.0040596c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405baf
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405ba8
push edi
push esi
push ebp
call fcn.004059e4
test eax, eax
je 0x405ba8
push str._Rename__r_n
push esi
call fcn.004058d1
test eax, eax
jne 0x405b46
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b7b
add eax, 0xa
push 0x4093b0
push eax
call fcn.004058d1
mov ebp, eax
test ebp, ebp
je 0x405b77
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b68
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b62
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405b7d
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x421698
push eax
call fcn.00405927
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405a13
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405bb4
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405bd7
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405a42
pop ecx
pop ecx
inc dword [0x423790]
ret 8
Function at 0x405be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c51
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c40
cmp dword [ebp + 0x14], 1
je 0x405c42
cmp dword [ebp + 0x14], 2
je 0x405c42
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406024
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406048
xor eax, eax
test eax, eax
je 0x40605a
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40605a
xor ecx, ecx
jmp 0x40605d
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406107
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x40613e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406118
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x406113
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40616f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x406151
pop edi
not eax
pop esi
ret 0xc
Function at 0x1000ebe0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x58
push 0
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.1001b770
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x1001c206
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10048bc8]
jne 0x1001c210
repz ret
jmp fcn.100231e9

Function at 0x1002e456
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10048bc8]
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.10020c1c
and dword [ebp - 0x14], 0
cmp dword [0x1004b474], 0
mov dword [ebp - 0x18], eax
jne 0x1002e509
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1002e5b1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1002e5b1
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1004b474], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1004b478], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1004b47c], eax
call edi
push eax
call esi
mov dword [0x1004b484], eax
test eax, eax
je 0x1002e509
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1004b480], eax
mov eax, dword [0x1004b480]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1002e562
cmp dword [0x1004b484], ecx
je 0x1002e562
push eax
call esi
push dword [0x1004b484]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1002e562
test ebx, ebx
je 0x1002e562
call edi
test eax, eax
je 0x1002e559
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1002e559
test byte [ebp - 8], 1
jne 0x1002e562
or dword [ebp + 0x10], 0x200000
jmp 0x1002e595
mov eax, dword [0x1004b478]
cmp eax, dword [ebp - 0x18]
je 0x1002e595
push eax
call esi
test eax, eax
je 0x1002e595
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1002e595
mov eax, dword [0x1004b47c]
cmp eax, dword [ebp - 0x18]
je 0x1002e595
push eax
call esi
test eax, eax
je 0x1002e595
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1004b474]
call esi
test eax, eax
je 0x1002e5b1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1002e5b3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001c206
leave
ret
Function at 0x10032680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10038d10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10048bc8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10048bc8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x10049fb8]
cmp eax, 0xffffffff
jne 0x100326c0
xor esi, esi
jmp 0x100326c9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], 0
test esi, esi
je 0x1003271d
nop
cmp dword [esi + 0x14], 0
jne 0x1003276a
cmp dword [esi + 0x10], 0
jne 0x10032770
push 0x10032220
push 0x1004b498
call fcn.10032450
mov eax, dword [0x10049fb8]
add esp, 8
cmp eax, 0xffffffff
je 0x10032821
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x1003274b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1003274b
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1001c206
add esp, 0x48
ret
cmp dword [esi + 0x10], 0
je 0x100327b2
mov ebp, dword [esi + 0x10]
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x100327a0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x10], 0
jne 0x10032770
cmp dword [esi + 0x14], 0
je 0x100326ea
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100327d7
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebp, dword [edi + 8]
test ebp, ebp
je 0x1003280a
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003280a
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003280a
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x14], 0
jne 0x100327bc
jmp 0x100326e0
call fcn.10018a80
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov edi, 0xb
mov dword [esp + 0x18], str.boost::thread_resource_error
call fcn.10019c8a
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], vtable.boost::thread_resource_error.0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.100057b0
int3
jmp 0x10032680
Function at 0x10032880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x10038d10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10048bc8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10048bc8]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [0x10049fb8]
cmp eax, 0xffffffff
jne 0x100326c0
xor esi, esi
jmp 0x100326c9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x18], esi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x58], 0
test esi, esi
je 0x1003271d
nop
cmp dword [esi + 0x14], 0
jne 0x1003276a
cmp dword [esi + 0x10], 0
jne 0x10032770
push 0x10032220
push 0x1004b498
call fcn.10032450
mov eax, dword [0x10049fb8]
add esp, 8
cmp eax, 0xffffffff
je 0x10032821
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x58], 0xffffffff
test esi, esi
je 0x1003274b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x1003274b
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1001c206
add esp, 0x48
ret
cmp dword [esi + 0x10], 0
je 0x100327b2
mov ebp, dword [esi + 0x10]
mov eax, dword [ebp + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebp]
test ecx, ecx
je 0x100327a0
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x10], 0
jne 0x10032770
cmp dword [esi + 0x14], 0
je 0x100326ea
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x100327d7
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebp, dword [edi + 8]
test ebp, ebp
je 0x1003280a
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x1003280a
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
lea ecx, [ebp + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x1003280a
mov eax, dword [ebp]
mov edx, dword [eax + 8]
mov ecx, ebp
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebx
cmp dword [esi + 0x14], 0
jne 0x100327bc
jmp 0x100326e0
call fcn.10018a80
mov esi, eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
mov edi, 0xb
mov dword [esp + 0x18], str.boost::thread_resource_error
call fcn.10019c8a
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], 0
mov byte [esp + 0x30], 0
mov dword [esp + 0x1c], vtable.boost::thread_resource_error.0
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x5c], 1
call fcn.100057b0
int3
jmp 0x10032680
Function at 0x10032ab0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov byte [ebp - 0x400], 0
push 0x3ff
push 0
lea eax, [ebp - 0x3ff]
push eax
call fcn.1001b770
add esp, 0xc
mov dword [ebp - 0x404], 0
push 0x400
lea ecx, [ebp - 0x400]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x10032b33
lea edx, [ebp - 0x400]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
je 0x10032b33
mov eax, dword [ebp - 0x408]
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x10032b33
mov edx, dword [ebp - 0x408]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x404], edx
mov eax, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret

Function at 0x10032de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10038f55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x254
mov byte [ebp - 0x234], 0
push 0xff
push 0
lea eax, [ebp - 0x233]
push eax
call fcn.1001b770
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x10], cx
push 0x11c
push 0
lea edx, [ebp - 0x134]
push edx
call fcn.1001b770
add esp, 0xc
mov dword [ebp - 0x134], 0x11c
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10032e5b
or ecx, 0xffffffff
mov word [ebp - 0x10], cx
jmp 0x10032ed0
mov edx, dword [ebp - 0x130]
mov dword [ebp - 0x23c], edx
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x23c], 6
jne 0x10032e90
cmp dword [ebp - 0x238], 1
jne 0x10032e90
mov ecx, 3
mov word [ebp - 0x10], cx
jmp 0x10032ed0
cmp dword [ebp - 0x23c], 5
jne 0x10032ead
cmp dword [ebp - 0x238], 2
jne 0x10032ead
mov edx, 2
mov word [ebp - 0x10], dx
jmp 0x10032ed0
cmp dword [ebp - 0x23c], 5
jne 0x10032eca
cmp dword [ebp - 0x238], 1
jne 0x10032eca
mov eax, 1
mov word [ebp - 0x10], ax
jmp 0x10032ed0
xor ecx, ecx
mov word [ebp - 0x10], cx
push 0x1004b5c0
lea edx, [ebp - 0x258]
push edx
call fcn.100075c0
add esp, 8
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x260]
call fcn.10001b00
push eax
mov ecx, 0x1004b4e0
call fcn.10001b00
push eax
movzx ecx, byte [0x1004b4c4]
push ecx
mov ecx, 0x1004b564
call fcn.10001e90
push eax
movsx edx, word [ebp - 0x10]
push edx
mov eax, dword [0x1004b4bc]
push eax
mov ecx, dword [0x1004b4b8]
push ecx
mov edx, dword [0x1004b4c0]
push edx
push str.dtfsmacmtm_dercd_uoser_ldwvin_dsrc_ssame_dmsrc_spsrc_s
lea eax, [ebp - 0x234]
push eax
call fcn.100070e0
add esp, 0x28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.10001870
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x234]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10019890
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret