joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f286
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40f2cd
call fcn.00405098
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40f2cd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40f2e9
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040ed8b
mov esi, eax
test edi, edi
je 0x40f2e7
test ebx, ebx
je 0x40f2e7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f6c8
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x50db28
call fcn.004f3817
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x40f6ed
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40f73f
call fcn.0040679a
push eax
lea ecx, [ebp - 0x10]
call fcn.0040478b
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f39e2
push eax
call fcn.00403d66
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404523
mov eax, esi
call fcn.004f38ef
ret 8

Function at 0x410e41
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00410b00
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x410e8b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00405561
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405532
jmp 0x410e96
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041052b
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x410e9c
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0040f392
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x410ed9
call fcn.00410b00
mov dword [esi + 0xc], 1
jmp 0x410ede
call fcn.00410b00
cmp dword [esi], 0
je 0x410f27
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x410eff
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00405561
jmp 0x410f11
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.004048f9
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00405532
jmp 0x410f4b
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x410f4b
push dword [esi]
push dword [ebp + 8]
call fcn.0041052b
pop esi
pop ebp
ret 0xc

Function at 0x418959
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00454366
call fcn.00404934
cmp dword [eax + 0x14], 0
jne 0x418976
mov ecx, esi
pop esi
jmp fcn.00418440
pop esi
ret

Function at 0x41c1b9
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0045c5e4
call fcn.00404934
cmp dword [eax + 0x14], 0
jne 0x41c1d6
mov ecx, esi
pop esi
jmp fcn.0041bb8c
pop esi
ret

Function at 0x429324
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00405098
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42935d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00428f66
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4293bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4293df
cmp dword [edi + 0x74], 0
jne 0x4293df
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00405098
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042937c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x458e39
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x458e53
call fcn.00405098
mov esi, dword [eax + 0xc]
push dword [0x565300]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x458e71
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x458e69
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x458e9e
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x458e6b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00458d67
mov esi, eax
jmp 0x458e90

Function at 0x4d7cd1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4d7ce9
mov edi, dword [esi + 0xc]
jmp 0x4d7d29
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d7d02
call fcn.00411f7a
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4d7d17
call fcn.00411f7a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4d7d29
call fcn.00411f7a
call fcn.00405098
cmp dword [eax + 0x3c], 0
je 0x4d7d3e
push edi
mov ecx, ebx
call fcn.004d6b97
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004d7beb
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4d7d5c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4d7d68
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4f2c9b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x560410]
jne 0x4f2ca5
repz ret
jmp fcn.004fa85c
Function at 0x5072c1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x560410]
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.004fa254
and dword [ebp - 0x14], 0
cmp dword [0x567dec], 0
mov dword [ebp - 0x18], eax
jne 0x507374
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x50741c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x50741c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x541914
push ebx
mov dword [0x567dec], eax
call edi
push eax
call esi
push 0x541900
push ebx
mov dword [0x567df0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x567df4], eax
call edi
push eax
call esi
mov dword [0x567dfc], eax
test eax, eax
je 0x507374
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x567df8], eax
mov eax, dword [0x567df8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5073cd
cmp dword [0x567dfc], ecx
je 0x5073cd
push eax
call esi
push dword [0x567dfc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5073cd
test ebx, ebx
je 0x5073cd
call edi
test eax, eax
je 0x5073c4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5073c4
test byte [ebp - 8], 1
jne 0x5073cd
or dword [ebp + 0x10], 0x200000
jmp 0x507400
mov eax, dword [0x567df0]
cmp eax, dword [ebp - 0x18]
je 0x507400
push eax
call esi
test eax, eax
je 0x507400
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x507400
mov eax, dword [0x567df4]
cmp eax, dword [ebp - 0x18]
je 0x507400
push eax
call esi
test eax, eax
je 0x507400
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x567dec]
call esi
test eax, eax
je 0x50741c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x50741e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f2c9b
leave
ret
Function at 0x416e50
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 0x416ea0
cmp edi, esi
jb 0x416f08
cmp edi, dword [esp + 0x1c]
ja 0x416f1b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x416ea2
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x416e90
jmp 0x416eff
ja 0x416ea8
cmp eax, edx
mov esi, edi
jne 0x416e63
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 0x416ee0
mov ebp, esi
sub ecx, edx
jns 0x416ef7
jmp 0x416f01
cmp esi, edi
je 0x416f30
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x416f01
xor al, 1
cmp ebp, edi
jne 0x416ec0
jmp 0x416f01
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0xa57e9c
call fcn.0044a6e0
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0xa57e9c
call fcn.0044a530
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_9df3a39fb30575d808e70800f9fad5362aac57a2library_alloc_srccollections_btreemapentry.rs
mov edx, 0x2b
push 0xa57eac
call fcn.0044a540
add esp, 4
ud2
Function at 0x420180
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], 0x43be90
lea ecx, [ebp - 0x18]
mov edx, dword fs:[0]
cmp eax, 3
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
je 0x4201be
test eax, eax
jne 0x42033a
mov ebx, dword [0xa679d8]
test ebx, ebx
je 0x42033a
mov dword [ebp - 0x20], 0
jmp 0x4201e7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x420218
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42038b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4201e0
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 0x4201e0
test byte [ebp - 0x20], 1
je 0x42033a
mov ebx, dword [0xa679d8]
test ebx, ebx
je 0x42033a
mov dword [ebp - 0x20], 0
jmp 0x420247
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x420278
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42038b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420240
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 0x420240
test byte [ebp - 0x20], 1
je 0x42033a
mov ebx, dword [0xa679d8]
test ebx, ebx
je 0x42033a
mov dword [ebp - 0x20], 0
jmp 0x4202a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4202d8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42038b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4202a0
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 0x4202a0
test byte [ebp - 0x20], 1
je 0x42033a
mov ebx, dword [0xa679d8]
test ebx, ebx
je 0x42033a
mov dword [ebp - 0x20], 0
jmp 0x420307
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x420334
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42038b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x420300
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 0x420300
test byte [ebp - 0x20], 1
jne 0x420354
movzx eax, byte [0xa63b40]
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 [0xa679d8]
jmp 0x42035f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x42033a
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x42038b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42035c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x42035c
mov dword [ebp - 0x10], 0
mov ecx, str.called__Option::unwrap____on_a__None__value_rustc_9df3a39fb30575d808e70800f9fad5362aac57a2library_alloc_srccollections_btreemapentry.rs
mov edx, 0x2b
push 0xa5e7d8
call fcn.0044a540
add esp, 4
ud2
Function at 0x420ca0
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, 0x10
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43bf10
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0xa6705c]
test eax, eax
je 0x420cf2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x420d08
cmp dword [eax], 0
mov edi, eax
je 0x420d08
add edi, 4
jmp 0x420dc7
mov ecx, 0xa6705c
call fcn.0044b000
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x420ce3
mov eax, dword [0xa6705c]
test eax, eax
je 0x420dab
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x420dc5
mov esi, eax
test eax, eax
jne 0x420d7c
mov eax, dword [0xa679c8]
test eax, eax
jne 0x420d48
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x420de6
mov dword [0xa679c8], eax
push 0x10
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x420de6
mov dword [eax], 0
mov dword [eax + 0xc], 0xa6705c
mov esi, eax
mov eax, dword [0xa6705c]
test eax, eax
je 0x420dda
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 8]
cmp dword [esi], 0
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
mov dword [esi + 8], 0
je 0x420dc7
test ecx, ecx
je 0x420dc7
lock dec dword [ecx]
jne 0x420dc7
call fcn.00420e30
jmp 0x420dc7
mov ecx, 0xa6705c
call fcn.0044b000
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x420d26
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xa6705c
call fcn.0044b000
jmp 0x420d74
mov ecx, 0x10
mov edx, 4
mov dword [ebp - 0x10], 0
call fcn.0044a3d0
ud2
Function at 0x421bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0xa67034]
test eax, eax
je 0x421c8d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x421c13
cmp byte [eax + 4], 0
mov esi, eax
jne 0x421c86
mov eax, dword [0xa67034]
test eax, eax
je 0x421cac
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x421cc6
mov esi, eax
test eax, eax
jne 0x421c80
mov eax, dword [0xa679c8]
test eax, eax
jne 0x421c53
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x421cd8
mov dword [0xa679c8], eax
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x421cd8
mov dword [eax], 0xa67034
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [0xa67034]
test eax, eax
je 0x421ccc
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov word [esi + 4], 1
add esi, 5
mov eax, esi
pop esi
ret
mov ecx, 0xa67034
call fcn.0044b000
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x421c0b
jmp 0x421c13
mov ecx, 0xa67034
call fcn.0044b000
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x421c31
xor esi, esi
mov eax, esi
pop esi
ret
mov ecx, 0xa67034
call fcn.0044b000
jmp 0x421c78
mov ecx, 8
mov edx, 4
call fcn.0044a3d0
ud2

Function at 0x422990
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x5c]
mov esi, ecx
mov ecx, dword [esp + 0x60]
mov edi, edx
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov edx, esp
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x4229e0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0x103
je 0x422a0a
test eax, eax
js 0x4229f4
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x50
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 0x50
pop esi
pop edi
ret
lea eax, [esp + 0x38]
mov dword [esp + 0x28], 0xa5cc68
mov dword [esp + 0x2c], 2
mov dword [esp + 0x20], 0
lea esi, [esp + 0x18]
mov dword [esp + 8], 0
mov dword [esp + 0x40], 0xa5e0c4
mov dword [esp + 0x44], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], str._rustc_9df3a39fb30575d808e70800f9fad5362aac57a2librarycore_src_strpattern.rs
mov byte [esp + 0xc], 0
mov dword [esp + 0x4c], 0
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4155d0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 1
push eax
push ecx
push esi
call fcn.00420840
add esp, 0xc
cmp byte [esp + 0x18], 4
je 0x422a9e
push esi
call fcn.004209a0
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x4230a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov eax, dword [0xa6706c]
test eax, eax
je 0x4230c1
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x4230d7
cmp dword [eax], 0
je 0x4230d7
add eax, 4
pop esi
ret
mov ecx, 0xa6706c
call fcn.0044b000
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x4230b7
mov eax, dword [0xa6706c]
test eax, eax
je 0x42314d
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x423163
mov esi, eax
test eax, eax
jne 0x42313b
mov eax, dword [0xa679c8]
test eax, eax
jne 0x42310b
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x423173
mov dword [0xa679c8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x423173
mov dword [eax], 0
mov dword [eax + 8], 0xa6706c
mov esi, eax
mov eax, dword [0xa6706c]
test eax, eax
je 0x423167
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esi], 1
lea eax, [esi + 4]
mov dword [esi + 4], 0
pop esi
ret
mov ecx, 0xa6706c
call fcn.0044b000
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x4230ed
xor eax, eax
pop esi
ret
mov ecx, 0xa6706c
call fcn.0044b000
jmp 0x423133
mov ecx, 0xc
mov edx, 4
call fcn.0044a3d0
ud2
Function at 0x429310
Capabilities:
Read file on windows

Disassembly:
push edi
push esi
sub esp, 0x50
mov eax, dword [esp + 0x5c]
mov esi, ecx
mov ecx, dword [esp + 0x60]
mov edi, edx
mov dword [esp], 0x103
mov dword [esp + 4], 0
mov edx, esp
push 0
push 0
push ecx
push eax
push edx
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x429359
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
cmp eax, 0xc0000011
jne 0x429369
mov dword [esi + 4], 0
jmp 0x42937b
cmp eax, 0x103
je 0x42939a
test eax, eax
js 0x429384
mov eax, dword [esp + 4]
mov dword [esi + 4], eax
mov byte [esi], 4
add esp, 0x50
pop esi
pop edi
ret
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 0x50
pop esi
pop edi
ret
lea eax, [esp + 0x38]
mov dword [esp + 0x28], 0xa5cc68
mov dword [esp + 0x2c], 2
mov dword [esp + 0x20], 0
lea esi, [esp + 0x18]
mov dword [esp + 8], 0
mov dword [esp + 0x40], 0xa5e0c4
mov dword [esp + 0x44], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], str._rustc_9df3a39fb30575d808e70800f9fad5362aac57a2librarycore_src_strpattern.rs
mov byte [esp + 0xc], 0
mov dword [esp + 0x4c], 0
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 0x4155d0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 1
push eax
push ecx
push esi
call fcn.00420840
add esp, 0xc
cmp byte [esp + 0x18], 4
je 0x42942e
push esi
call fcn.004209a0
add esp, 4
mov ecx, 7
int 0x29
ud2
Function at 0x42cc20
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, 0x10
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x43c1c0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0xa67024]
test eax, eax
je 0x42cc72
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x42cc88
cmp dword [eax], 0
mov edi, eax
je 0x42cc88
add edi, 4
jmp 0x42cd40
mov ecx, 0xa67024
call fcn.0044b000
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x42cc63
mov eax, dword [0xa67024]
test eax, eax
je 0x42cd24
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x42cd3e
mov esi, eax
test eax, eax
jne 0x42ccfc
mov eax, dword [0xa679c8]
test eax, eax
jne 0x42ccc8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x42cd5f
mov dword [0xa679c8], eax
push 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42cd5f
mov dword [eax], 0
mov dword [eax + 8], 0xa67024
mov esi, eax
mov eax, dword [0xa67024]
test eax, eax
je 0x42cd53
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esi + 4]
cmp dword [esi], 0
lea edi, [esi + 4]
mov dword [esi], 1
mov dword [esi + 4], 0
je 0x42cd40
test ecx, ecx
je 0x42cd40
lock dec dword [ecx]
jne 0x42cd40
call fcn.0042cda0
jmp 0x42cd40
mov ecx, 0xa67024
call fcn.0044b000
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x42cca6
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0xa67024
call fcn.0044b000
jmp 0x42ccf4
mov ecx, 0xc
mov edx, 4
mov dword [ebp - 0x10], 0
call fcn.0044a3d0
ud2