joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444aa8
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
test edi, edi
jne 0x444acd
xor al, al
jmp 0x444cb1
push ebx
push esi
lea ecx, [ebp - 0x18]
mov esi, 0x80000001
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call fcn.00438a1f
mov eax, dword [ebp + 8]
and eax, 0xffff00ff
cmp eax, 0x15
jg 0x444bb2
je 0x444ba8
cmp eax, 0xb
jg 0x444b5e
je 0x444b54
dec eax
dec eax
je 0x444b4a
sub eax, 3
je 0x444b40
dec eax
je 0x444b36
dec eax
je 0x444b2c
dec eax
je 0x444b22
dec eax
jne 0x444c0b
push str.SendTo
jmp 0x444c3d
push str.Recent
jmp 0x444c3d
push str.Start_Up
jmp 0x444c3d
push str.Favorites
jmp 0x444c3d
push str.Personal
jmp 0x444c3d
push str.Programs
jmp 0x444c3d
push str.Start_Menu
jmp 0x444c3d
sub eax, 0xd
je 0x444b9e
dec eax
je 0x444b94
dec eax
dec eax
je 0x444b8a
sub eax, 3
je 0x444b80
dec eax
jne 0x444c0b
push str.Fonts
jmp 0x444c3d
push str.NetHood
jmp 0x444c3d
push str.Desktop
jmp 0x444c3d
push str.My_Video
jmp 0x444c3d
push str.My_Music
jmp 0x444c3d
push str.Templates
jmp 0x444c3d
cmp eax, 0x22
jg 0x444bf6
je 0x444bef
sub eax, 0x1a
je 0x444be8
dec eax
je 0x444be1
dec eax
je 0x444bda
sub eax, 4
je 0x444bd3
dec eax
jne 0x444c0b
push str.Cookies
jmp 0x444c3d
push str.Cache
jmp 0x444c3d
push str.Local_AppData
jmp 0x444c3d
push str.PrintHood
jmp 0x444c3d
push str.AppData
jmp 0x444c3d
push str.History
jmp 0x444c3d
sub eax, 0x26
je 0x444c2e
dec eax
je 0x444c27
sub eax, 9
je 0x444c20
sub eax, 0xa
je 0x444c19
dec eax
je 0x444c12
xor bl, bl
jmp 0x444ca5
push str.CD_Burning
jmp 0x444c3d
push str.OEM_Links
jmp 0x444c38
push str.Administrative_Tools
jmp 0x444c3d
push str.My_Pictures
jmp 0x444c3d
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersion
push str.ProgramFilesDir
mov esi, 0x80000002
lea ecx, [ebp - 0x18]
call fcn.00438d6a
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x444c64
xor bl, bl
jmp 0x444c92
mov esi, dword [ebp - 0x1c]
lea eax, [edi + edi]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x28]
push eax
push 0
call fcn.0043fcdc
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 0x1c], 0
je 0x444ca5
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call fcn.00438cda
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4478ee
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
push 0x228
mov dword [ebp - 0x248], eax
xor edi, edi
lea eax, [ebp - 0x240]
mov dword [ebp - 0x244], 0x22c
push edi
push eax
call fcn.0046e5c0
add esp, 0xc
push edi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4479e9
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x23c], ebx
je 0x44796b
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x447950
jmp 0x4479e8
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x18]
call fcn.004389d2
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0043aee4
lea ecx, [ebp - 0x25c]
call fcn.0043634f
push dword [ebp - 0x248]
lea ecx, [ebp - 0x18]
call fcn.0043b602
cmp eax, 0x3e9
jne 0x4479e0
lea ecx, [ebp - 0x18]
call fcn.0043fcdc
push eax
push str.findOSDParent__
push str._s___found_a_parent__s
push edi
push edi
push 6
call fcn.00404b89
push dword [ebp - 0x248]
push dword [ebp - 0x22c]
call fcn.004478ee
add esp, 0x20
mov edi, ebx
test eax, eax
cmovne edi, eax
lea ecx, [ebp - 0x18]
call fcn.00438cda
pop ebx
test esi, esi
je 0x4479f4
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret
Function at 0x44a425
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x28], esi
push edi
push str.Progman
mov dword [esi], edi
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x44a470
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x44a470
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x44a544
push ebx
lea eax, [ebp - 0x24]
push eax
push 1
push str.explorer.exe
lea ecx, [ebp - 0x18]
call fcn.004389d2
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0044f0d5
add esp, 0x10
lea ecx, [ebp - 0x3c]
cmp dword [eax + 0xc], 0x7d0
sete bl
call fcn.0043634f
lea ecx, [ebp - 0x18]
call fcn.00438cda
test bl, bl
je 0x44a4ba
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x44a4ba
mov dword [esi], ecx
jmp 0x44a4e2
lea eax, [ebp - 0x18]
push eax
call fcn.0044f2f6
pop ecx
lea ecx, [ebp - 0x18]
cmp dword [eax + 0xc], 0x3e9
setne bl
call fcn.0043634f
test bl, bl
je 0x44a4e7
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x44a543
push 1
push edi
push str.WinSta0
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov esi, eax
test esi, esi
jne 0x44a517
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Failed_to_open_WinSta0__last_error___d
push edi
push edi
push edi
call fcn.00404b89
add esp, 0x14
jmp 0x44a536
lea eax, [ebp - 0x1c]
push eax
push 0x44a38f
push esi
call dword [sym.imp.USER32.dll_EnumDesktopsW]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x44a536
mov ecx, dword [ebp - 0x28]
xor edi, edi
inc edi
mov dword [ecx], eax
test esi, esi
je 0x44a541
push esi
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret
Function at 0x44ab17
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x244]
push ebx
push esi
mov esi, dword [ebp + 8]
push ecx
push 0x200
lea ecx, [ebp - 0x204]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44abec
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ebx, ebx
push ebx
push eax
lea eax, [ebp - 0x23c]
push 0x4aed2c
push eax
call fcn.00436a45
add esp, 0xc
lea ecx, [ebp - 0x224]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x23c]
call fcn.0043634f
lea ecx, [ebp - 0x224]
call fcn.0043fe40
cmp eax, 0x7d1
lea eax, [ebp - 0x224]
push ebx
jl 0x44abe2
push ebx
push 0x5cf
push 0x49a508
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004069d9
add esp, 0x14
mov ecx, esi
push eax
call fcn.0043630b
lea ecx, [ebp - 0x23c]
call fcn.0043634f
lea ecx, [ebp - 0x224]
call fcn.0043634f
jmp 0x44ad63
push eax
mov ecx, esi
call fcn.0043630b
jmp 0x44abd2
xor ebx, ebx
mov word [ebp - 0x208], 0x500
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20c], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x44ac7b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push ebx
push eax
lea eax, [ebp - 0x23c]
push 0x49ac88
push eax
call fcn.00436a45
add esp, 0xc
lea ecx, [ebp - 0x224]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x23c]
call fcn.0043634f
lea ecx, [ebp - 0x224]
call fcn.0043fe40
cmp eax, 0x7d1
lea eax, [ebp - 0x224]
push ebx
jl 0x44abe2
push ebx
push 0x5e1
jmp 0x44abaa
push edi
push dword [ebp - 0x228]
push dword [ebp - 0x204]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne byte [ebp - 0x20d]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x228]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test edi, edi
je 0x44ad3e
push ebx
push edi
lea eax, [ebp - 0x23c]
push 0x49acbc
push eax
call fcn.00436a45
add esp, 0xc
lea ecx, [ebp - 0x224]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x23c]
call fcn.0043634f
lea ecx, [ebp - 0x224]
call fcn.0043fe40
cmp eax, 0x7d1
lea eax, [ebp - 0x224]
push ebx
jl 0x44ad34
push ebx
push 0x5ea
push 0x49a508
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.004069d9
add esp, 0x14
mov ecx, esi
push eax
call fcn.0043630b
lea ecx, [ebp - 0x23c]
call fcn.0043634f
lea ecx, [ebp - 0x224]
call fcn.0043634f
jmp 0x44ad62
push eax
mov ecx, esi
call fcn.0043630b
jmp 0x44ad27
xor eax, eax
mov ecx, esi
cmp byte [ebp - 0x20d], al
setne al
add eax, 0x3e8
mov dword [ebp - 0x240], eax
lea eax, [ebp - 0x240]
push eax
call fcn.004362eb
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret
Function at 0x4516aa
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, 0x400
mov esi, 0x1000
and dword [ebx], 0
and dword [ebp + 0x10], 0
xor ecx, ecx
mov eax, edi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004529c5
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
push ecx
mov dword [edx], eax
call fcn.0046b1fd
mov eax, dword [ebp + 0xc]
pop ecx
pop ecx
cmp dword [eax], 0
je 0x451756
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], esi
push ecx
push esi
push dword [eax]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x45173a
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x451733
add edi, 0x400
add esi, 0x1000
cmp dword [ebp - 4], eax
je 0x4516c7
shr eax, 2
mov dword [ebx], eax
push 0x4a4694
mov ecx, dword [ebp + 8]
call fcn.004362eb
jmp 0x451783
push 0x4a7e68
jmp 0x451729
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push eax
lea eax, [ebp - 0x18]
push 0x49b2dc
push eax
call fcn.00436a45
add esp, 0xc
jmp 0x451772
push 0
push 0
push 0x71
push str.....CodeWin32ECProcessFinder.cpp
lea eax, [ebp - 0x18]
push 0x4a49d8
push eax
call fcn.00407126
add esp, 0x14
mov ecx, dword [ebp + 8]
push eax
call fcn.0043630b
lea ecx, [ebp - 0x18]
call fcn.0043634f
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482248
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c1280]
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.00474cbe
mov dword [ebp - 0x14], eax
cmp dword [0x4c58c8], esi
jne 0x48233b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4822c8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x48241b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x48241b
push 0x4a14d4
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x48241b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4c58c8], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4c58cc], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4c58d0], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4c58d8], eax
test eax, eax
je 0x482338
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x4c58d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x482360
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x482353
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x482375
push 4
pop eax
jmp 0x48241d
cmp dword [ebp - 0x14], esi
je 0x482375
push dword [0x4c58c8]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x48235a
mov eax, dword [0x4c58d4]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, edi
je 0x4823d3
cmp dword [0x4c58d8], edi
je 0x4823d3
push eax
call ebx
push dword [0x4c58d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4823d3
test eax, eax
je 0x4823d3
call ecx
test eax, eax
je 0x4823c8
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 0x4823c8
test byte [ebp - 8], 1
jne 0x4823d3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x482403
mov eax, dword [0x4c58cc]
cmp eax, edi
je 0x482400
push eax
call ebx
test eax, eax
je 0x482400
call eax
mov esi, eax
test esi, esi
je 0x482400
mov eax, dword [0x4c58d0]
cmp eax, edi
je 0x482400
push eax
call ebx
test eax, eax
je 0x482400
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4c58c8]
call ebx
test eax, eax
je 0x48241b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x48241d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046a6d5
mov esp, ebp
pop ebp
ret
Function at 0x4d52a2
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004d5321
jae 0x4d52ae
xor ecx, ecx
call fcn.004d5321
jae 0x4d52d8
xor eax, eax
call fcn.004d5321
jae 0x4d52e9
mov al, 0x10
call fcn.004d5321
adc al, al
jae 0x4d52ca
jne 0x4d5316
stosb byte es:[edi], al
jmp 0x4d52af
call fcn.004d532d
dec ecx
loop 0x4d52f5
mov eax, ebp
call fcn.004d532b
jmp 0x4d5317
lodsb al, byte [esi]
shr eax, 1
je 0x4d533d
adc ecx, 2
mov ebp, eax
jmp 0x4d5317
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004d532b
cmp eax, 0x7d00
jae 0x4d5315
cmp eax, 0x500
jae 0x4d5316
cmp eax, 0x7f
ja 0x4d5317
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4d52af
pop ebp
ret 8
Function at 0x409db0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x409de6
mov dword [0x447590], eax
mov edx, sym.get_globals_dtor_void_
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43f040], eax
leave
ret

Function at 0x409ed0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.___gxx_personality_sj0
mov dword [ebp - 0x24], 0x43e98c
mov dword [ebp - 0x1c], 0x409f90
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp dword [0x43f040], 0
mov dword [ebp - 0x44], 0x4475a0
je 0x409f70
jl 0x409fb0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x447590]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40a053
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x447b70]
mov eax, 0xffffffff
test edx, edx
je 0x409fca
mov eax, dword [0x43f044]
test eax, eax
je 0x40a00a
xor eax, eax
test eax, eax
jne 0x40a000
mov edi, dword [0x43f040]
test edi, edi
js 0x40a000
mov dword [ebp - 0x44], 0x4475a0
mov ebx, dword [0x43f040]
test ebx, ebx
je 0x409f70
jmp 0x409f1e
xor esi, esi
mov dword [0x43f040], esi
jmp 0x409fd8
mov dword [esp], 0x43f048
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x40a091
mov eax, dword [0x43f044]
test eax, eax
jne 0x409fc8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43f044]
test eax, eax
je 0x40a02d
jmp 0x409fc8
mov dword [esp], 8
call sym._malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40a085
mov dword [esp + 4], eax
mov eax, dword [0x447590]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40a0ba
test edx, edx
je 0x40a0a5
mov dword [ebp - 0x3c], 1
call method.std.terminate__
call sym.get_globals_init__
mov eax, 1
mov dword [0x43f044], eax
jmp 0x409fc8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x409f66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x40a081
Function at 0x40b3a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040b380
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sym._read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40b3ec
call sym.__errno
cmp dword [eax], 4
je 0x40b3c0
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40d3c0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x447bc0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40d400
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call sym.___mingwthr_key_dtor
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40d7b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x447bc0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40d88c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40d8a1
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40d860
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40d7f8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40d808
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40d853
test edx, edx
jne 0x40d846
test ecx, ecx
je 0x40d7f0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40d8b0
cmp eax, 8
je 0x40d7f0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40d7e2
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40d7d4
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40d7d4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call sym.__Unwind_RaiseException_Phase2
cmp eax, 7
jne 0x40d84b
mov eax, dword [0x447bc0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40d903
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40d92e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40d90f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
jmp 0x40d8e1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40d8f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40d8f2
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40d8e8
Function at 0x40da30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov eax, dword [0x447bc0]
test eax, eax
je 0x40da90
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40dab0
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40dad0
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
je 0x40db20
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40da52
jmp 0x40dab0
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40da59
jmp 0x40dad0
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
sub esp, 4
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x10], eax
mov eax, edi
call sym.__Unwind_ForcedUnwind_Phase2
cmp eax, 7
jne 0x40da81
lea esi, [esi]
mov eax, dword [0x447bc0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40db6d
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40db79
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40db4e
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40db3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40db3d
call sym.___w32_sharedptr_initialize
mov eax, dword [0x447bc0]
jmp 0x40db2c
call sym._fc_key_init_once
mov eax, dword [0x447bc0]
jmp 0x40db33