joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437df0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439d39
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x44c680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CLangControl.0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00402580
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.00402580
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00406c5e
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.00402a50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x437e90
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439db2
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44c680]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x18]
call fcn.00402580
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x1c], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 0x20], eax
mov ax, word [ebp - 0x1c]
mov word [ebp - 0x14], ax
lea ecx, [ebp - 0x10]
call fcn.00402580
mov byte [ebp - 4], 1
movzx ecx, word [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401cc0
lea ecx, [ebp - 0x10]
call fcn.00401490
movzx edx, al
test edx, edx
je 0x437f49
movzx eax, word [ebp - 0x14]
and eax, 0x3ff
mov dword [ebp - 0x24], eax
movzx ecx, word [ebp - 0x14]
and ecx, 0x3ff
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401cc0
lea ecx, [ebp - 0x10]
call fcn.00401490
movzx edx, al
test edx, edx
je 0x437f49
push 9
lea ecx, [ebp - 0x10]
call fcn.00401cc0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402160
mov ecx, dword [ebp - 0x28]
or ecx, 1
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004024e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004024e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x43b64f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
mov eax, dword [esp]
add esp, 4
sub edx, edx
call fcn.0043b68d
sub ecx, ecx
dec edx
and ecx, edx
xor dword [ebx], eax
add edx, ecx
sub ecx, 0x19d38183
inc ebx
sub ecx, 0x3c9b14c9
and ecx, edx
or ecx, ecx
cmp ebx, edi
jne fcn.0043b64f
sub ecx, ecx
mov ecx, ecx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x29ca61fc
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3438223e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40f6f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov eax, dword [ecx + 0x14]
mov esi, ecx
lock dec dword [eax]
jne 0x40f703
lea ecx, [esi + 0x14]
call fcn.004142c0
cmp dword [esi + 8], 0
je 0x40f71a
push dword [esi + 0xc]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x268]
cmp eax, 0x80000000
je 0x40f7f1
test eax, eax
je 0x40f743
push dword [esi + 0x26c]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x274], 0
je 0x40f760
push dword [esi + 0x278]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x280], 0
je 0x40f77d
push dword [esi + 0x284]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x290], 0
je 0x40f79a
push dword [esi + 0x294]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2a4], 0
je 0x40f7b7
push dword [esi + 0x2a8]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2b0], 0
je 0x40f7d4
push dword [esi + 0x2b4]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2c0], 0
je 0x40f7f1
push dword [esi + 0x2c4]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 0x2d4]
cmp eax, 0x80000000
je 0x40f833
test eax, eax
je 0x40f816
push dword [esi + 0x2d8]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2e0], 0
je 0x40f833
push dword [esi + 0x2e4]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esi + 0x258], 0x7fffffff
jne 0x40f853
cmp dword [esi + 0x248], 2
jne 0x40f870
cmp dword [esi + 0xc8], 2
jne 0x40f88f
pop esi
ret
push dword [esi + 0x25c]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x248], 2
je 0x40f848
lea ecx, [esi + 0xd8]
call fcn.0040f500
lea ecx, [esi + 0x198]
call fcn.0040f500
cmp dword [esi + 0xc8], 2
je 0x40f851
add esi, 0x18
mov ecx, esi
pop esi
jmp fcn.0040f500
Function at 0x419520
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x50
mov eax, dword [0x5b8148]
test eax, eax
je 0x419553
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x419569
mov ebx, eax
mov eax, dword [eax]
or eax, dword [ebx + 4]
je 0x419569
add ebx, 8
jmp 0x419653
mov ecx, 0x5b8148
call fcn.00545b80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x419542
mov eax, dword [0x5b8148]
test eax, eax
je 0x419637
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x419651
mov ebx, eax
test eax, eax
jne 0x4195d4
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0x50
call fcn.0051b940
test eax, eax
je 0x41966c
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x48], 0x5b8148
mov ebx, eax
mov eax, dword [0x5b8148]
test eax, eax
je 0x41965d
dec eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov edi, esp
mov ecx, 0x12
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 4], 0
mov dword [ebx], 1
add ebx, 8
mov ecx, 0x10
mov esi, 0x5a6d58
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp]
or eax, dword [esp + 4]
je 0x419653
mov eax, dword [esp + 0xc]
cmp eax, 2
je 0x419653
test eax, eax
lea ecx, [esp + 0x10]
je 0x419627
mov eax, dword [esp + 0x10]
lock dec dword [eax]
jne 0x419653
call fcn.00413a90
jmp 0x419653
mov eax, dword [esp + 0x10]
lock dec dword [eax]
jne 0x419653
call fcn.00413f80
jmp 0x419653
mov ecx, 0x5b8148
call fcn.00545b80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x419587
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x5b8148
call fcn.00545b80
jmp 0x4195cc
mov ecx, 8
mov edx, 0x50
call fcn.0053b730
int3
Function at 0x41b950
Capabilities:
Authenticate hmac
Encode data using base64
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xffffffc0
sub esp, 0x900
mov esi, esp
mov dword [esi + 0x8d8], ebp
call fcn.0041b96c
Function at 0x4584d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x458520
cmp esi, edi
ja 0x458588
cmp edi, dword [esp + 0x1c]
ja 0x458596
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x458522
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x458510
jmp 0x45857f
ja 0x458528
cmp eax, edx
mov esi, edi
jne 0x4584e3
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x458560
mov ebp, esi
sub ecx, edx
jns 0x458577
jmp 0x458581
cmp esi, edi
je 0x4585a6
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x458581
xor al, 1
cmp ebp, edi
jne 0x458540
jmp 0x458581
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x54e8e8
call fcn.0053bd90
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x54e8e8
call fcn.0053bb70
mov ecx, 0x54e8d8
call fcn.0053bf10
Function at 0x45e450
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 8
mov eax, dword [0x5b8030]
test eax, eax
je 0x45e47c
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x45e492
cmp dword [eax + 4], 0
mov esi, eax
je 0x45e492
add esi, 8
mov eax, esi
add esp, 8
pop esi
ret
mov ecx, 0x5b8030
call fcn.00545b80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x45e46a
mov eax, dword [0x5b8030]
test eax, eax
je 0x45e4f2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
xor esi, esi
cmp eax, 1
jne 0x45e4b1
mov eax, esi
add esp, 8
pop esi
ret
test eax, eax
mov esi, eax
jne 0x45e507
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0xc
call fcn.0051b940
test eax, eax
je 0x45e54a
mov dword [eax], 0x5b8030
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5b8030]
test eax, eax
jne 0x45e4fe
mov ecx, 0x5b8030
call fcn.00545b80
jmp 0x45e4ff
mov ecx, 0x5b8030
call fcn.00545b80
jmp 0x45e49c
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.0053c180
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esi + 4], 1
mov dword [esi + 8], eax
je 0x45e472
test ecx, ecx
je 0x45e472
lock dec dword [ecx]
jne 0x45e472
lea ecx, [esp + 4]
call fcn.0045e560
jmp 0x45e472
mov ecx, 4
mov edx, 0xc
call fcn.0053b730
int3
Function at 0x4712e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 0x1c
mov eax, dword [0x5b80a0]
test eax, eax
je 0x4713b3
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x47130a
cmp dword [eax + 4], 0
mov esi, eax
jne 0x4713a9
mov eax, dword [0x5b80a0]
test eax, eax
je 0x4713d2
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4713ec
mov esi, eax
test eax, eax
jne 0x47136e
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0x20
call fcn.0051b940
test eax, eax
je 0x471404
mov dword [eax], 0x5b80a0
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5b80a0]
test eax, eax
je 0x4713f5
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esp
call fcn.00470bb0
movsd xmm1, qword [esp + 8]
movsd xmm0, qword [esp]
cmp dword [esi + 4], 0
movsd qword [esi + 0xc], xmm1
movsd xmm1, qword [esp + 0x10]
movsd qword [esi + 0x14], xmm1
mov eax, dword [esp + 0x18]
movsd qword [esi + 4], xmm0
mov dword [esi + 0x1c], eax
je 0x4713a9
lock dec dword [0x5b935c]
add esi, 4
mov eax, esi
add esp, 0x1c
pop esi
ret
mov ecx, 0x5b80a0
call fcn.00545b80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4712fe
jmp 0x47130a
mov ecx, 0x5b80a0
call fcn.00545b80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x471328
xor esi, esi
mov eax, esi
add esp, 0x1c
pop esi
ret
mov ecx, 0x5b80a0
call fcn.00545b80
jmp 0x471366
mov ecx, 4
mov edx, 0x20
call fcn.0053b730
int3
Function at 0x49e7a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov eax, dword [ecx + 0x14]
mov esi, ecx
lock dec dword [eax]
jne 0x49e7b3
mov ecx, dword [esi + 0x14]
call fcn.00473780
cmp dword [esi + 8], 0
je 0x49e7ca
push dword [esi + 0xc]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
lea ecx, [esi + 0x268]
call fcn.0049e880
mov eax, dword [esi + 0x2d4]
cmp eax, 0x80000000
je 0x49e817
test eax, eax
je 0x49e7fa
push dword [esi + 0x2d8]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x2e0], 0
je 0x49e817
push dword [esi + 0x2e4]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
test dword [esi + 0x258], 0x7fffffff
jne 0x49e837
cmp dword [esi + 0x248], 2
jne 0x49e854
cmp dword [esi + 0xc8], 2
jne 0x49e873
pop esi
ret
push dword [esi + 0x25c]
push 0
push dword [0x5b93c8]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esi + 0x248], 2
je 0x49e82c
lea ecx, [esi + 0xd8]
call fcn.00486970
lea ecx, [esi + 0x198]
call fcn.00486970
cmp dword [esi + 0xc8], 2
je 0x49e835
add esi, 0x18
mov ecx, esi
pop esi
jmp fcn.00486970
Function at 0x49f680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x5389c0
mov ebx, ecx
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 8]
mov dword fs:[0], eax
call fcn.004cffe0
cmp dword [esi + 8], 0x80000004
jne 0x49f70c
mov edi, dword [esi + 0xc]
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0x10
call fcn.0051b940
test eax, eax
je 0x49f749
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov byte [eax + 0xc], bl
mov edx, 0x5561d0
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esi + 8]
movsd xmm1, qword [esi + 0x10]
mov dword [esi + 0x38], 0
lea eax, [esi + 0x18]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm0
push 0x5560b8
push 0x554534
push eax
call fcn.0053be90
add esp, 0xc
jmp 0x49f762
mov ecx, 4
mov edx, 0x10
mov dword [esi + 4], edi
mov dword [esi + 0x38], 1
call fcn.0053b730
ud2

Function at 0x49f7b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x5389d0
mov ebx, ecx
lea eax, [esi + 0x30]
mov dword [esi + 4], edx
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 8]
mov dword fs:[0], eax
call fcn.004cffe0
cmp dword [esi + 8], 0x80000004
jne 0x49f845
mov edi, dword [esi + 0xc]
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0x10
call fcn.0051b940
test eax, eax
je 0x49f882
mov ecx, dword [esi + 4]
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov byte [eax + 0xc], bl
mov edx, 0x556224
mov byte [eax + 0xd], cl
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esi + 8]
movsd xmm1, qword [esi + 0x10]
mov dword [esi + 0x38], 0
lea eax, [esi + 0x18]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm0
push 0x5560b8
push 0x554534
push eax
call fcn.0053be90
add esp, 0xc
jmp 0x49f89b
mov ecx, 4
mov edx, 0x10
mov dword [esi + 4], edi
mov dword [esi + 0x38], 1
call fcn.0053b730
ud2
Function at 0x49f8e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x34], 0x5389e0
mov ebx, ecx
lea eax, [esi + 0x30]
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
lea ecx, [esi + 8]
mov dword fs:[0], eax
call fcn.004cffe0
cmp dword [esi + 8], 0x80000004
jne 0x49f973
mov edi, dword [esi + 0xc]
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0x10
call fcn.0051b940
test eax, eax
je 0x49f9b0
mov dword [eax], 1
mov dword [eax + 4], 1
mov dword [eax + 8], edi
mov word [eax + 0xc], bx
shr ebx, 0x10
mov edx, 0x5560d4
mov byte [eax + 0xe], bl
mov ecx, dword [esi + 0x30]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movsd xmm0, qword [esi + 8]
movsd xmm1, qword [esi + 0x10]
mov dword [esi + 0x38], 0
lea eax, [esi + 0x18]
mov ecx, str.called__Result::unwrap____on_an__Err__value
mov edx, 0x2b
movsd qword [esi + 0x20], xmm1
movsd qword [esi + 0x18], xmm0
push 0x5560b8
push 0x554534
push eax
call fcn.0053be90
add esp, 0xc
jmp 0x49f9c9
mov ecx, 4
mov edx, 0x10
mov dword [esi + 4], edi
mov dword [esi + 0x38], 1
call fcn.0053b730
ud2
Function at 0x4c9640
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x34]
mov dword [esp + 8], ecx
lea eax, [ebx - 1]
cmp eax, edx
jae 0x4c97d0
cmp ebx, edx
jae 0x4c97c8
mov ecx, dword [esp + 8]
mov eax, ebx
mov dword [esp + 0x10], edx
shl eax, 4
lea eax, [eax + ecx - 0x10]
mov dword [esp + 0xc], eax
jmp 0x4c96bc
add esi, 0xfffffff0
mov ebp, esi
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ch, byte [esp + 3]
movzx edx, word [esp + 4]
mov cl, byte [esp + 6]
mov ebx, dword [esp + 0x14]
mov dword [ebp], eax
mov dword [ebp + 4], esi
mov dword [ebp + 8], edi
mov byte [ebp + 0xc], ch
mov word [ebp + 0xd], dx
mov edx, dword [esp + 0x10]
mov byte [ebp + 0xf], cl
add dword [esp + 0xc], 0x10
inc ebx
cmp ebx, edx
je 0x4c97c8
mov ebp, dword [esp + 8]
mov esi, ebx
mov dword [esp + 0x14], ebx
shl esi, 4
mov edi, dword [ebp + esi + 8]
mov eax, dword [ebp + esi - 8]
mov ecx, dword [ebp + esi + 4]
mov ebx, edi
sub ebx, eax
cmovb eax, edi
push eax
push dword [ebp + esi - 0xc]
mov dword [esp + 0x20], ecx
push ecx
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
movzx ecx, byte [ebp + esi + 0xc]
test eax, eax
mov edx, dword [esp + 0x10]
cmovne ebx, eax
xor eax, eax
mov byte [esp + 3], cl
sub cl, byte [ebp + esi - 4]
cmp cl, 0xff
sete al
xor ecx, ecx
test ebx, ebx
mov ebx, dword [esp + 0x14]
sets cl
cmovne eax, ecx
cmp al, 1
jne 0x4c96ae
add esi, dword [esp + 8]
mov ebp, dword [esp + 0xc]
dec ebx
mov eax, dword [esi]
movzx edx, byte [esi + 0xf]
movzx ecx, word [esi + 0xd]
movsd xmm0, qword [esi - 0x10]
movsd xmm1, qword [esi - 8]
mov dword [esp + 0x1c], eax
mov byte [esp + 6], dl
mov word [esp + 4], cx
movsd qword [esi], xmm0
movsd qword [esi + 8], xmm1
je 0x4c9679
nop word [eax + eax]
mov eax, dword [ebp - 8]
mov esi, edi
sub esi, eax
cmovb eax, edi
push eax
push dword [ebp - 0xc]
push dword [esp + 0x20]
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
movzx ecx, byte [esp + 3]
test eax, eax
cmovne esi, eax
xor eax, eax
sub cl, byte [ebp - 4]
cmp cl, 0xff
sete al
xor ecx, ecx
test esi, esi
sets cl
cmove ecx, eax
cmp cl, 1
jne 0x4c967e
lea eax, [ebp - 0x10]
dec ebx
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
test ebx, ebx
movsd qword [ebp + 8], xmm1
movsd qword [ebp], xmm0
mov ebp, eax
jne 0x4c9760
mov ebp, dword [esp + 8]
jmp 0x4c967e
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.assertion_failed:_offset___0__offset___len
mov edx, 0x2e
push 0x5a6214
call fcn.0053bbd0
int3
Function at 0x4d21f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
sub esp, 0x18
mov eax, dword [0x5b80b4]
test eax, eax
je 0x4d2218
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4d222e
cmp dword [eax + 4], 0
je 0x4d222e
add eax, 8
add esp, 0x18
pop esi
ret
mov ecx, 0x5b80b4
call fcn.00545b80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jae 0x4d220a
mov eax, dword [0x5b80b4]
test eax, eax
je 0x4d22a9
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4d22bf
mov esi, eax
test eax, eax
jne 0x4d2286
movzx eax, byte [0x5b9430]
xor ecx, ecx
mov edx, 0xc
call fcn.0051b940
test eax, eax
je 0x4d2305
mov dword [eax], 0x5b80b4
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x5b80b4]
test eax, eax
je 0x4d22c6
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, 1
lock xadd dword [0x5b80b0], ecx
test ecx, ecx
je 0x4d22d2
lea eax, [esi + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], ecx
add esp, 0x18
pop esi
ret
mov ecx, 0x5b80b4
call fcn.00545b80
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jne 0x4d2244
xor eax, eax
add esp, 0x18
pop esi
ret
mov ecx, 0x5b80b4
call fcn.00545b80
jmp 0x4d227e
mov ecx, esp
mov edx, 0x558f0c
mov dword [esp], str.regex:_thread_ID_allocation_space_exhausted
mov dword [esp + 4], 1
mov dword [esp + 0x10], 0
mov dword [esp + 8], str.Index_out_of_bounds
mov dword [esp + 0xc], 0
call fcn.0053ba80
mov ecx, 4
mov edx, 0xc
call fcn.0053b730
int3