joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014a1e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10034110]
jne 0x10014a28
repz ret
jmp fcn.1001a9a7

Function at 0x10024245
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1001bcbe
and dword [ebp - 4], 0
cmp dword [0x10036578], 0
mov ebx, eax
jne 0x100242f6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100243a7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100243a7
push eax
call fcn.1001bc4c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10036578], eax
call esi
push eax
call fcn.1001bc4c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1003657c], eax
call esi
push eax
call fcn.1001bc4c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10036580], eax
call esi
push eax
call fcn.1001bc4c
pop ecx
mov dword [0x10036588], eax
test eax, eax
je 0x100242f6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001bc4c
pop ecx
mov dword [0x10036584], eax
mov eax, dword [0x10036584]
cmp eax, ebx
je 0x1002434e
cmp dword [0x10036588], ebx
je 0x1002434e
push eax
call fcn.1001bcc7
push dword [0x10036588]
mov esi, eax
call fcn.1001bcc7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002434e
test edi, edi
je 0x1002434e
call esi
test eax, eax
je 0x10024345
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10024345
test byte [ebp - 0xc], 1
jne 0x1002434e
or dword [ebp + 0x10], 0x200000
jmp 0x10024387
mov eax, dword [0x1003657c]
cmp eax, ebx
je 0x10024387
push eax
call fcn.1001bcc7
pop ecx
test eax, eax
je 0x10024387
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10024387
mov eax, dword [0x10036580]
cmp eax, ebx
je 0x10024387
push eax
call fcn.1001bcc7
pop ecx
test eax, eax
je 0x10024387
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10036578]
call fcn.1001bcc7
pop ecx
test eax, eax
je 0x100243a7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100243a9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b5350
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b537d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b537d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401080
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x13c
mov eax, dword [0x404008]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
lea eax, [esp + 8]
mov dword [esp + 4], 0
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionOpenWith
xorps xmm0, xmm0
mov dword [esp + 0x18], 0
push reloc.OLEAUT32.dll_SysReAllocString
movaps xmmword [esp + 0x34], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401191
mov esi, dword [esp + 8]
test esi, esi
je 0x401191
push pe_nt_image_headers32
push eax
lea eax, [esp + 0x40]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], pe_nt_image_headers32
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0x403224
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401191
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401130
sub ecx, edx
sar ecx, 1
cmp ecx, 0x26
jne 0x401191
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x401191
lea eax, [esp + 4]
mov dword [esp + 0xc], 0x6a283fe2
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4599ecfa
push eax
push 4
push 0
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x9e8c491
push eax
mov dword [esp + 0x2c], 0x267b1357
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.004012f0
mov esp, ebp
pop ebp
ret

Function at 0x4011b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 2
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
call fcn.00401080
mov ebx, eax
push 0
push ebx
call dword [sym.imp.ole32.dll_CoAllowSetForegroundWindow]
push str..pdf
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
test esi, esi
je 0x401232
mov edi, dword [ebx]
push 4
push esi
push dword [ebp - 4]
mov edi, dword [edi + 0xc]
mov ecx, edi
push ebx
call dword [0x403110]
call edi
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x403110]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x8007000e
call fcn.00401030
int3
Function at 0x4057c8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
lea eax, [ebp - 0x18]
mov esi, dword [ebp + 8]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x405930
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x5c], 0x38
mov dword [ebp - 0x58], 0x404b20
mov dword [ebp - 0x54], 0x404c21
mov dword [ebp - 0x50], 0x404ad0
mov dword [ebp - 0x4c], 0x404ae2
mov dword [ebp - 0x48], 0x4057c5
and dword [ebp - 0x40], 0
and dword [ebp - 0x44], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x405519
mov dword [ebp - 0x34], 0x4056eb
and dword [ebp - 0x2c], 0
and dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x4055f3
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
push 4
push 0x40
call fcn.00405cb0
pop ecx
pop edx
test eax, eax
je 0x4058ce
mov ecx, dword [ebp - 0x18]
mov dword [eax], 0x38
mov dword [eax + 4], 0x404b20
mov dword [eax + 8], 0x404c21
mov dword [eax + 0xc], 0x404ad0
mov dword [eax + 0x10], 0x404ae2
mov dword [eax + 0x14], 0x4057c5
and dword [eax + 0x1c], 0
and dword [eax + 0x18], 0
and dword [eax + 0x20], 0
mov dword [eax + 0x24], 0x405519
mov dword [eax + 0x28], 0x4056eb
and dword [eax + 0x30], 0
and dword [eax + 0x2c], 0
mov dword [eax + 0x34], 0x4055f3
mov dword [eax + 0x38], esi
mov dword [eax + 0x3c], 1
mov dword fs:[0], ecx
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
and dword [ebp - 0x10], 0
push 4
push 0x40
call fcn.0042e3f0
pop eax
pop ecx
ud2
Function at 0x409b30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4128c0
mov edi, 0x200
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 2
movlps qword [ebp - 0x34], xmm0
cmp edi, 0x201
jae 0x409bc0
jmp 0x409bae
jbe 0x409c53
cmp edi, 0x201
jae 0x409bc0
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x448]
mov esi, edi
jmp 0x409bfb
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub edi, esi
sub eax, esi
cmp eax, edi
jae 0x409bec
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, esi
push edi
call fcn.0042d8c0
add esp, 4
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x409c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x409cb6
cmp edi, esi
jne 0x409ba0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x409cd5
add esi, esi
mov eax, 0xffffffff
cmovb esi, eax
mov edi, esi
cmp edi, 0x201
jb 0x409bae
jmp 0x409bc0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp edi, eax
ja 0x409cf2
lea eax, [ebp - 0x48]
push edi
push ebx
push eax
call fcn.0040b110
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409ca0
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.00405cc0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], 0
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x409c90
jmp 0x409ca0
mov dword [ebp - 0x10], 0
push 0x430d98
push 0x28
push 0x42fb2b
call fcn.0042e570
add esp, 0xc
jmp 0x409d01
push 0x430da8
push eax
push edi
call fcn.0042e6e0
add esp, 0xc
ud2
Function at 0x40f720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [0x43c034]
mov esi, ecx
test eax, eax
je 0x40f74b
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x40f764
cmp dword [eax], 0
mov ebx, eax
je 0x40f764
add ebx, 4
jmp 0x40f82c
push 0x43c034
call fcn.0042db00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x40f73c
mov eax, dword [0x43c034]
test eax, eax
je 0x40f80d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40f82a
mov edi, eax
test eax, eax
jne 0x40f7bd
push 4
push 0xc
call fcn.00405cb0
add esp, 8
test eax, eax
je 0x40f845
mov dword [eax], 0
mov dword [eax + 8], 0x43c034
mov edi, eax
mov eax, dword [0x43c034]
test eax, eax
je 0x40f833
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ebp, ebp
test esi, esi
je 0x40f7e9
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
test eax, eax
je 0x40f7e9
cmp eax, 1
jne 0x40f7db
mov ebp, ecx
jmp 0x40f7e9
test ecx, ecx
je 0x40f7e9
lock dec dword [ecx]
jne 0x40f7e9
call fcn.00408750
mov ecx, dword [edi + 4]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], ebp
je 0x40f82c
test ecx, ecx
je 0x40f82c
lock dec dword [ecx]
jne 0x40f82c
call fcn.00408750
jmp 0x40f82c
push 0x43c034
call fcn.0042db00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40f782
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43c034
call fcn.0042db00
add esp, 4
jmp 0x40f7b5
push 4
push 0xc
call fcn.0042e3f0
add esp, 8
ud2

Function at 0x410020
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov dword [esp + 0x18], edx
mov esi, ecx
mov edi, dword [0x43ca6c]
test edi, edi
mov dword [esp], edi
jne 0x410076
mov eax, esp
push 0
push 0
push 0x430968
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x4100b2
mov ecx, dword [esp]
xor eax, eax
lock cmpxchg dword [0x43ca6c], ecx
jne 0x410068
mov edi, dword [esp]
jmp 0x410076
mov edi, eax
push 0
push dword [esp + 4]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 0
push 0x10
push eax
push edi
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x4100b2
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp], 0x4309b8
mov dword [esp + 4], 2
mov dword [esp + 8], 0x4309c8
mov dword [esp + 0xc], 2
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], fcn.0041d8d0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], fcn.0041d8d0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 2
mov eax, esp
push 0x430a08
push eax
call fcn.0042e490
add esp, 8
ud2
Function at 0x4109f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x412aa0
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x410a2e
test eax, eax
jne 0x410baa
mov ebx, dword [0x43ca70]
test ebx, ebx
je 0x410baa
mov dword [ebp - 0x20], 0
jmp 0x410a57
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x410a88
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x410bfb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410a50
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x410a50
test byte [ebp - 0x20], 1
je 0x410baa
mov ebx, dword [0x43ca70]
test ebx, ebx
je 0x410baa
mov dword [ebp - 0x20], 0
jmp 0x410ab7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x410ae8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x410bfb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410ab0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x410ab0
test byte [ebp - 0x20], 1
je 0x410baa
mov ebx, dword [0x43ca70]
test ebx, ebx
je 0x410baa
mov dword [ebp - 0x20], 0
jmp 0x410b17
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x410b48
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x410bfb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410b10
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x410b10
test byte [ebp - 0x20], 1
je 0x410baa
mov ebx, dword [0x43ca70]
test ebx, ebx
je 0x410baa
mov dword [ebp - 0x20], 0
jmp 0x410b77
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x410ba4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x410bfb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410b70
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x410b70
test byte [ebp - 0x20], 1
jne 0x410bc4
movzx eax, byte [0x437d40]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x43ca70]
jmp 0x410bcf
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x410baa
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x410bfb
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x410bcc
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x410bcc
mov dword [ebp - 0x10], 0
push 0x430cf0
push 0x2b
push str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_code_rustc_1286ee23e4e2dec8c1696d3d76c6b26d97bbcf82library_alloc_src_vecmod.rs
call fcn.0042e570
add esp, 0xc
ud2
Function at 0x411a90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x43c060]
mov esi, ecx
test eax, eax
je 0x411ab6
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x411acf
cmp byte [eax + 4], 0
je 0x411acf
add eax, 5
pop esi
pop edi
ret
push 0x43c060
call fcn.0042db00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x411aaa
mov eax, dword [0x43c060]
test eax, eax
je 0x411b3c
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x411b55
mov edi, eax
test eax, eax
jne 0x411b19
push 4
push 8
call fcn.00405cb0
add esp, 8
test eax, eax
je 0x411b69
mov byte [eax + 4], 0
mov dword [eax], 0x43c060
mov edi, eax
mov eax, dword [0x43c060]
test eax, eax
je 0x411b5a
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x411b2d
movzx ecx, byte [esi]
mov byte [esi], 0
and cl, 1
neg cl
and cl, byte [esi + 1]
jmp 0x411b2f
xor ecx, ecx
mov byte [edi + 4], 1
lea eax, [edi + 5]
mov byte [edi + 5], cl
pop esi
pop edi
ret
push 0x43c060
call fcn.0042db00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x411ae5
xor eax, eax
pop esi
pop edi
ret
push 0x43c060
call fcn.0042db00
add esp, 4
jmp 0x411b11
push 4
push 8
call fcn.0042e3f0
add esp, 8
ud2

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

Disassembly:
push ebx
push edi
push esi
mov eax, dword [0x43c070]
mov esi, ecx
test eax, eax
je 0x411baa
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x411bc3
cmp dword [eax], 0
mov ebx, eax
je 0x411bc3
add ebx, 4
jmp 0x411c9e
push 0x43c070
call fcn.0042db00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x411b9b
mov eax, dword [0x43c070]
test eax, eax
je 0x411c7f
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x411c9c
mov edi, eax
test eax, eax
jne 0x411c20
push 4
push 0x10
call fcn.00405cb0
add esp, 8
test eax, eax
je 0x411cb6
mov dword [eax], 0
mov dword [eax + 0xc], 0x43c070
mov edi, eax
mov eax, dword [0x43c070]
test eax, eax
je 0x411ca4
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x411c54
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi], 0
test edx, edx
je 0x411c54
cmp edx, 1
jne 0x411c3f
mov edx, ecx
jmp 0x411c58
test ecx, ecx
je 0x411c54
xor eax, eax
lock dec dword [ecx]
mov edx, 0
jne 0x411c58
call fcn.004086f0
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 8]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], edx
je 0x411c9e
test ecx, ecx
je 0x411c9e
lock dec dword [ecx]
jne 0x411c9e
call fcn.004086f0
jmp 0x411c9e
push 0x43c070
call fcn.0042db00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x411be1
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
ret
push 0x43c070
call fcn.0042db00
add esp, 4
jmp 0x411c18
push 4
push 0x10
call fcn.0042e3f0
add esp, 8
ud2
Function at 0x411d20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x43c080]
mov esi, ecx
test eax, eax
je 0x411d45
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x411d5e
cmp dword [eax], 0
je 0x411d5e
add eax, 4
pop esi
pop edi
ret
push 0x43c080
call fcn.0042db00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x411d3a
mov eax, dword [0x43c080]
test eax, eax
je 0x411dd4
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x411ded
mov edi, eax
test eax, eax
jne 0x411dab
push 4
push 0xc
call fcn.00405cb0
add esp, 8
test eax, eax
je 0x411e01
mov dword [eax], 0
mov dword [eax + 8], 0x43c080
mov edi, eax
mov eax, dword [0x43c080]
test eax, eax
je 0x411df2
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x411dc3
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi], 0
cmp eax, 1
jne 0x411dc5
mov ecx, dword [esi + 4]
jmp 0x411dc5
xor ecx, ecx
mov dword [edi], 1
lea eax, [edi + 4]
mov dword [edi + 4], ecx
pop esi
pop edi
ret
push 0x43c080
call fcn.0042db00
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x411d74
xor eax, eax
pop esi
pop edi
ret
push 0x43c080
call fcn.0042db00
add esp, 4
jmp 0x411da3
push 4
push 0xc
call fcn.0042e3f0
add esp, 8
ud2
Function at 0x41a2b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x68
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
test eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
je 0x41a301
cmp eax, 1
jne 0x41a378
mov dword [esp], 0x431f89
jmp 0x41a308
mov dword [esp], 0x431f8b
mov edx, 2
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
jne 0x41a394
mov ecx, esp
lea edx, [esp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0x431fec
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x41e430
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], 0x41e220
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x41e220
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 3
jmp 0x41a41a
mov edx, 7
mov dword [esp], 0x431f82
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
je 0x41a31d
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, esp
lea esi, [esp + 8]
mov dword [esp + 0x38], 0x431fc8
mov dword [esp + 0x3c], 4
mov dword [esp + 0x40], 0
mov dword [esp + 0x18], edx
lea edx, [esp + 0x10]
mov dword [esp + 0x1c], 0x41e430
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x41e220
lea esi, [esp + 0x50]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0x41e220
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x41ace0
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 4
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.0042e490
add esp, 8
ud2
Function at 0x41d430
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41d488
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x41d480
cmp ebp, ebx
jb 0x41d502
cmp ebp, dword [esp + 0x1c]
ja 0x41d513
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x41d482
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x41d470
jmp 0x41d4df
ja 0x41d488
cmp edx, edi
mov ebx, ebp
jne 0x41d445
mov edx, dword [esp + 0x24]
test edx, edx
je 0x41d4e3
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x41d4c0
mov esi, edi
sub ecx, ebx
jns 0x41d4d7
jmp 0x41d4e5
cmp edi, edx
je 0x41d4ec
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x41d4e5
xor al, 1
cmp esi, edx
jne 0x41d4a0
jmp 0x41d4e5
xor eax, eax
jmp 0x41d4e5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43257c
push 0x2b
push str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
call fcn.0042e570
add esp, 0xc
ud2
push 0x43256c
push ebp
push ebx
call fcn.0042e700
add esp, 0xc
ud2
push 0x43256c
push dword [esp + 0x20]
push ebp
call fcn.0042e6e0
add esp, 0xc
ud2

Function at 0x41ea10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x41ea45
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x41ea42
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x41ea4e
add edx, 0x28
cmp edx, esi
jne 0x41ea30
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x41ea4b

Function at 0x41ee90
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41eecf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41eecf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41eecf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41eecf
cmp dword [ecx + 0x74], 0xe
jbe 0x41eecf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret