joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5246e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x524746
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x524746
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x524727
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x54213a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0054c369
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x54216b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0054217e
pop edi
pop esi
pop ebx
ret 8

Function at 0x543755
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x54378d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0054179b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00541773
jmp 0x543799
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x545041
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x545083
call fcn.0054c369
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x545083
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x54507a
xor eax, eax
jmp 0x54508b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00545091
pop edi
pop esi
pop ebx
ret 4

Function at 0x54c899
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x54c8c7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x54c8e5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0054c7ff
jmp 0x54c8e5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x54c8e5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0054c7ff
test edi, edi
mov eax, edi
jne 0x54c8cf
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6ad8e140
Capabilities:
Create directory

Disassembly:
push esi
push ebx
mov ebx, eax
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
jne 0x6ad8e160
xor eax, eax
add esp, 0x14
pop ebx
pop esi
ret
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
cmp dword [eax], 0x11
je 0x6ad8e154
call esi
cmp dword [eax], 0xd
jne 0x6ae0f37b
jmp 0x6ad8e154
mov dword [esp + 4], ebx
mov dword [esp], str.Failed_to_create_directory___ls_
call fcn.6ae0f21f
mov eax, 0x25
jmp 0x6ad8e156
Function at 0x6ad90370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
test eax, 0xf083001c
jne 0x6ad903b0
mov dword [esp + 0x18], eax
mov eax, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
pop ebx
pop esi
pop edi
jmp fcn.6ad8e920
pop ebx
mov eax, 0x18
pop esi
pop edi
ret

Function at 0x6ad91850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
mov ebp, dword [edi + 0x20]
cmp ebp, 0xfffe
ja 0x6ad91992
mov eax, dword [edi]
lea ebx, [edi + 4]
cmp eax, ebx
je 0x6ad91938
lea ebx, [ebp + 1]
mov dword [esp], eax
imul ebx, ebx, 0x1c
mov dword [esp + 4], ebx
call fcn.6adab660
mov ebx, eax
test eax, eax
je 0x6ad9198e
mov dword [edi], eax
imul ebp, dword [edi + 0x20], 0x1c
add ebx, ebp
xor ecx, ecx
xor ebp, ebp
lea edx, [ebx + 4]
mov eax, ebx
mov dword [ebx], 0
and edx, 0xfffffffc
mov dword [ebx + 0x18], 0
sub eax, edx
add eax, 0x1c
and eax, 0xfffffffc
mov dword [edx + ebp], ecx
add ebp, 4
cmp ebp, eax
jb 0x6ad918c0
movzx edx, byte [esp + 0x34]
movzx eax, byte [ebx + 0x1b]
shl edx, 5
and eax, 0x1f
or eax, edx
mov byte [ebx + 0x1b], al
mov eax, dword [esp + 0x38]
cmp word [eax], 0
jne 0x6ad91978
mov dword [ebx], 0x6ae1a7e2
mov eax, dword [edi + 0x78]
lea edx, [eax + 1]
add eax, eax
mov dword [edi + 0x78], edx
mov edx, dword [ebx + 0x18]
and eax, 0x1ffffffe
or eax, 1
mov dword [ebx + 4], esi
and edx, 0xe0000000
or eax, edx
mov dword [ebx + 0x18], eax
test esi, esi
je 0x6ad91925
mov eax, dword [edi + 0x38]
and eax, 0x3fffffff
add dword [esi + 0x24], eax
add dword [edi + 0x20], 1
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
je 0x6ad9189d
lea ebx, [ebp + 1]
imul ebx, ebx, 0x1c
mov dword [esp], ebx
call fcn.6adab620
mov ebx, eax
test eax, eax
je 0x6ad9198e
imul ebp, dword [edi + 0x20], 0x1c
mov eax, dword [edi]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call sub.msvcrt.dll_memcpy
mov dword [edi], ebx
jmp 0x6ad9189d
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.6ad8d530
mov dword [ebx], eax
test eax, eax
jne 0x6ad918f2
xor ebx, ebx
jmp 0x6ad91929
mov eax, dword [edi + 0x2c]
xor ebx, ebx
sub eax, 0x14
mov dword [esp], eax
call fcn.6ad86760
mov dword [esp], str.Inode_has_too_many_streams__Path__ls_
mov dword [esp + 4], eax
call fcn.6ae0f1f5
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x1b
jmp 0x6ad91929
Function at 0x6ad92580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
sub esp, 0x28
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov edx, esi
call fcn.6ad86510
test eax, eax
jne 0x6ad86ffd
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov edx, dword [esi]
mov dword [esp], edx
call fcn.6ad91530
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call fcn.6ad91f70
mov eax, dword [esp + 0x1c]
add esp, 0x28
pop esi
ret
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
cmp byte [esp + 0x78], 0
mov esi, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x70]
lea edx, [edi + 0xc]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x28], eax
jne 0x6ad92660
mov eax, 0xfffc0001
mul esi
mov edx, dword [edi + 8]
add eax, dword [esp + 0x1c]
sub edx, 1
and eax, edx
mov edx, dword [edi]
lea edx, [edx + eax*4]
mov ebx, dword [edx]
test ebx, ebx
je 0x6ad92660
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
sub ebx, 0x30
xor eax, esi
xor ecx, ebp
or ecx, eax
jne 0x6ad92658
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
xor eax, dword [ebx + 0x70]
xor ecx, dword [ebx + 0x74]
or ecx, eax
jne 0x6ad92658
test byte [ebx + 0x24], 0x10
jne 0x6ad9262c
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x60], eax
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
jmp 0x6ad86fc0
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x2c], edx
sub eax, 0x14
mov dword [esp], eax
call fcn.6ad86760
mov dword [esp], str.Not_honoring_directory_hard_link_of___ls_
mov dword [esp + 4], eax
call fcn.6ae0f249
mov edx, dword [esp + 0x2c]
lea esi, [esi]
mov ebx, dword [ebx + 0x30]
test ebx, ebx
jne 0x6ad925e3
nop
lea eax, [esp + 0x3c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2c], edx
mov dword [esp], eax
call fcn.6ad867f0
mov ebx, eax
test eax, eax
jne 0x6ad926d3
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov dword [eax + 0x68], esi
mov esi, dword [esp + 0x1c]
mov dword [eax + 0x6c], ebp
lea ebp, [eax + 0x30]
mov dword [eax + 0x70], esi
mov esi, dword [esp + 0x20]
mov dword [eax + 0x74], esi
mov esi, dword [edx]
mov dword [eax + 0x30], esi
test esi, esi
je 0x6ad926b3
mov dword [esi + 4], ebp
mov dword [edx], ebp
mov dword [eax + 0x34], edx
lea eax, [edi + 0xc]
cmp edx, eax
je 0x6ad926cd
mov eax, dword [edi + 4]
add eax, 1
mov dword [edi + 4], eax
cmp eax, dword [edi + 8]
ja 0x6ad926e0
mov eax, dword [esp + 0x28]
mov dword [eax], ecx
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call fcn.6ad924c0
mov ecx, dword [esp + 0x3c]
jmp 0x6ad926cd
Function at 0x6ada18a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.6adac310
test eax, eax
jne 0x6ada19e5
lea eax, [esi + 0x3fffffff]
mov ecx, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x130]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 8]
mov ebp, dword [edi + 0xc]
mov dword [esp + 0x44], ecx
test ecx, ecx
je 0x6ada1a18
mov eax, dword [ebp + 4]
lea edx, [eax*8 + 8]
test eax, eax
je 0x6ada1909
mov eax, dword [ebp + 8]
lea edi, [edx + eax - 8]
nop
add edx, dword [eax]
add eax, 8
cmp edi, eax
jne 0x6ada1900
lea edi, [edx + 7]
and edi, 0xfffffff8
mov dword [ebp], edi
mov dword [esp], ecx
call fcn.6ad86580
mov dword [esp + 0x4c], 0
lea eax, [edi + eax + 8]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.6ad86780
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
test eax, eax
jne 0x6ae0fa5f
mov dword [esp], edi
call fcn.6adab620
mov esi, eax
test eax, eax
je 0x6ae0fa5f
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.6ada6340
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.6ad87a20
sub eax, esi
cmp eax, edi
jne 0x6ada19f0
mov eax, dword [ebx + 0x130]
mov edx, dword [esp + 0x3c]
add ebx, 0x158
mov ecx, dword [esp + 0x78]
mov eax, dword [eax + edx*4]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], ecx
lea ecx, [eax + 0x10]
add eax, 0x68
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x14], eax
movzx eax, byte [ebx + 0x22]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.6adb0780
mov dword [esp], esi
mov dword [esp + 0x3c], eax
call fcn.6adab650
mov eax, dword [esp + 0x3c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xd3
mov dword [esp + 4], str.src_metadata_resource.c
mov dword [esp], str.p___buf__len
call dword [0x6ae132b8]
jmp 0x6ada1982
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.6ad87010
test eax, eax
jne 0x6ada19e5
mov ecx, dword [esp + 0x44]
mov dword [edi + 8], ecx
jmp 0x6ada18ea
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esp], str.Failed_to_allocate__llu_bytes_for_metadata_resource
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.6ae0f1f5
mov eax, 0x27
jmp 0x6ada19e5
Function at 0x6ada4f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xdc
mov edi, dword [esp + 0xf0]
mov esi, dword [esp + 0xf4]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x18], esi
mov ecx, dword [edi + 0x10]
mov ebx, dword [edi + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [edi]
movzx edi, byte [edi + 7]
and eax, 0xffffff
mov ebp, dword [esi]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov eax, edi
xor ebp, 0x57504c57
mov dword [esp + 0x28], edx
lea edx, [esp + 0x38]
mov byte [esp + 0x40], al
mov eax, dword [esi + 4]
mov dword [esp + 0x34], ebx
xor eax, 0x4d
or ebp, eax
sete al
mov ebp, eax
movzx eax, byte [esp + 0x41]
and eax, 0xfffffffe
or eax, ebp
and edi, 4
mov byte [esp + 0x41], al
je 0x6ada50b0
movzx eax, byte [esi + 0x179]
shl eax, 0xa
mov edi, eax
mov eax, dword [esp + 0x40]
and eax, 0x3ff
or eax, edi
mov dword [esp + 0x40], eax
mov eax, dword [esi + 0x17c]
mov dword [esp + 0x44], eax
movzx eax, byte [esp + 0x74]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
and eax, 0xfffffff0
mov dword [esp + 0x54], ebx
or eax, 1
mov dword [esp + 0x88], edx
mov byte [esp + 0x74], al
lea eax, [esp + 0x18]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x88]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x8c], edx
mov dword [esp + 4], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call fcn.6ada4f00
add esp, 0xdc
pop ebx
pop esi
pop edi
pop ebp
ret
and dword [esp + 0x40], 0x3ff
mov dword [esp + 0x44], 0
jmp 0x6ada5039
Function at 0x6ada6890
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea eax, [esp + 0x18]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6ada7eb0
mov eax, dword [esp + 0x18]
mov ebp, dword [edi + 4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x40], eax
test ebp, ebp
je 0x6ada691f
lea ebx, [esp + 0x30]
jmp 0x6ada68fd
je 0x6ada69f8
mov ebp, dword [ebp + 4]
test ebp, ebp
je 0x6ada691f
lea eax, [ebp - 0x14]
mov dword [esp + 8], 0x14
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_memcmp
test eax, eax
jns 0x6ada68f0
mov ebp, dword [ebp]
test ebp, ebp
jne 0x6ada68fd
mov dword [esp], 0x24
call fcn.6adab620
mov ebx, eax
test eax, eax
je 0x6ada6a48
mov eax, dword [esp + 0x78]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6adab820
mov ebp, eax
test eax, eax
je 0x6ada6a39
mov esi, dword [edi]
mov eax, dword [esi + 4]
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 4]
lea eax, [eax*4 + 4]
mov dword [esp + 4], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.6adab660
test eax, eax
je 0x6ada6a31
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
lea eax, [eax*8 + 8]
mov dword [esp + 4], eax
mov eax, dword [esi + 8]
mov dword [esp], eax
call fcn.6adab660
mov edx, eax
test eax, eax
je 0x6ada6a31
mov dword [esi + 8], eax
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov dword [ecx + eax*4], ebp
mov ecx, dword [esp + 0x78]
mov dword [edx + eax*8 + 4], 0
mov dword [edx + eax*8], ecx
add eax, 1
mov edx, ebx
mov dword [esi + 4], eax
mov eax, edi
call fcn.6ada60e0
test al, al
je 0x6ada6a10
mov eax, dword [ebx]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x18]
test eax, eax
js 0x6ada691f
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x15c
mov dword [esp + 4], str.src_security.c
mov dword [esp], 0x6ae1dcf6
call dword [0x6ae132b8]
mov eax, dword [ebx]
jmp 0x6ada69ec
mov dword [esp], ebp
call fcn.6adab650
mov dword [esp], ebx
call fcn.6adab650
mov eax, 0xffffffff
jmp 0x6ada6a03
or eax, 0xffffffff
jmp 0x6ada6a03
Function at 0x6ada7eb0
Capabilities:
Hash data using sha1

Disassembly:
push ebx
sub esp, 0x78
mov eax, dword [esp + 0x84]
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], 0
mov dword [esp + 4], eax
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
mov dword [esp + 0x28], 0xc3d2e1f0
call fcn.6ada7c70
mov eax, dword [esp + 0x88]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.6ada7e20
add esp, 0x78
pop ebx
ret
Function at 0x6adad640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x3c
movzx eax, byte [eax + 0x2c]
and eax, 0xf
cmp al, 1
je 0x6adad671
mov dword [esp + 8], 0xfb
mov dword [esp + 4], str.src_write.c
mov dword [esp], str.blob__blob_location__BLOB_IN_WIM
call dword [0x6ae132b8]
mov edx, dword [ebx + 0x30]
mov esi, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov ebp, dword [edx + 0x1c]
movzx eax, byte [edx + 0x28]
mov dword [esp + 0x18], esi
mov esi, dword [edx + 0x10]
mov dword [esp + 0x1c], edi
mov edi, dword [edx + 0x18]
mov dword [esp + 0x24], ebp
mov edx, dword [edx + 0x14]
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], esi
test al, 0x10
je 0x6adad710
mov edi, dword [ebx + 0x38]
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x54], edx
mov ebp, dword [ebx + 0x3c]
mov esi, dword [esp + 0x18]
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x70], edi
mov edi, dword [ebx + 0xc]
mov dword [ebx + 0x68], ecx
mov ecx, dword [ebx + 0x6c]
and edi, 0xffffff
mov dword [ebx + 0x74], ebp
mov ebp, dword [esp + 0x24]
and ecx, 0xff000000
mov dword [ebx + 0x48], esi
mov esi, dword [esp + 0x2c]
or ecx, edi
mov edi, dword [esp + 0x1c]
mov dword [ebx + 0x5c], ebp
mov dword [ebx + 0x6c], ecx
mov dword [ebx + 0x4c], edi
mov edi, dword [esp + 0x20]
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x58], edi
mov dword [ebx + 0x7c], 0
mov byte [ebx + 0x6f], al
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov dword [ebx + 0x68], ecx
mov ecx, edx
mov edx, dword [ebx + 0x6c]
mov dword [ebx + 0x70], esi
and ecx, 0xffffff
mov esi, dword [esp + 0x20]
mov dword [ebx + 0x74], edi
and edx, 0xff000000
mov edi, dword [esp + 0x24]
or edx, ecx
mov dword [ebx + 0x78], esi
mov dword [ebx + 0x7c], edi
mov dword [ebx + 0x6c], edx
mov byte [ebx + 0x6f], al
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6adb3990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 0x144]
test eax, eax
je 0x6adb39e8
test esi, esi
je 0x6adb39d8
test edi, edi
je 0x6adb39d8
mov eax, dword [ebx + 0x58]
mov dword [edi], eax
mov dword [esp + 0x24], ebx
add ebx, 0x48
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], ebx
add esp, 0x10
pop ebx
pop esi
pop edi
jmp fcn.6ada4f90
mov eax, 0x18
add esp, 0x10
pop ebx
pop esi
pop edi
ret
lea eax, [ebx + 0x148]
mov dword [esp], eax
call fcn.6ad90bc0
test al, al
je 0x6adb39ac
mov eax, 0x2d
jmp 0x6adb39dd

Function at 0x6adb3a10
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0x144]
test eax, eax
je 0x6adb3a88
mov edi, dword [ebx + 0x58]
lea eax, [esp + 0x1c]
mov dword [esp + 4], ebx
add ebx, 0x48
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.6ada4f90
mov esi, eax
test eax, eax
jne 0x6adb3a78
mov eax, dword [esp + 0x34]
mov dword [esp + 8], edi
mov dword [esp + 4], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, edi
jne 0x6ae108bf
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.6adab650
add esp, 0x20
mov eax, esi
pop ebx
pop esi
pop edi
ret
lea eax, [ebx + 0x148]
mov esi, 0x2d
mov dword [esp], eax
call fcn.6ad90bc0
test al, al
je 0x6adb3a24
jmp 0x6adb3a78
mov dword [esp], str.Failed_to_extract_XML_data
mov esi, 0x48
call fcn.6ae0f21f
jmp 0x6adb3a6c
Function at 0x6adb8f10
Capabilities:
Get disk information

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x24c
mov dword [edx], 0
mov byte [ecx], 0
mov dword [esp + 8], 4
mov dword [esp + 4], 0x6ae2484a
mov dword [esp], eax
call sub.msvcrt.dll_wcsncmp
mov edx, eax
lea eax, [esi + 8]
test edx, edx
cmovne eax, esi
movzx ecx, word [eax]
mov edx, ecx
and edx, 0xffffffdf
sub edx, 0x41
cmp dx, 0x19
ja 0x6adb8f63
cmp word [eax + 2], 0x3a
je 0x6adb8fe0
xor edx, edx
xor eax, eax
mov word [esp + 0x2e], dx
lea ebp, [esp + 0x36]
mov dword [esp + 0x1c], 0x105
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x6adb9009
mov dword [esp + 4], 0x6ae248aa
mov dword [esp], ebp
call sub.msvcrt.dll_wcsstr
test eax, eax
je 0x6adb8fcd
or dword [ebx], 0xc00000
mov byte [edi], 1
add esp, 0x24c
pop ebx
pop esi
pop edi
pop ebp
ret
mov word [esp + 0x2e], cx
test cx, cx
je 0x6adb9002
xor eax, eax
mov dword [esp + 0x30], 0x5c003a
mov word [esp + 0x34], ax
lea eax, [esp + 0x2e]
jmp 0x6adb8f6c
xor eax, eax
jmp 0x6adb8f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 8], esi
mov dword [esp + 4], str.Failed_to_get_volume_information_for___ls_
mov dword [esp], eax
call fcn.6ae11d9c
jmp 0x6adb8fcd

Function at 0x6adb9240
Capabilities:
Get file attributes

Disassembly:
test byte [ecx + 0xe], 0x10
jne 0x6adb9310
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x50
mov ecx, dword [ecx + 0xdc]
test ecx, ecx
jne 0x6adb9268
xor eax, eax
add esp, 0x50
pop ebx
pop esi
pop edi
ret
mov esi, eax
lea eax, [esp + 0x28]
mov edi, dword [edx + 0x24]
mov dword [esp + 0x10], 4
mov dword [esp + 8], eax
lea eax, [ebx + 0x1a8]
mov dword [esp + 0xc], 0x28
and edi, 0x800
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.ntdll.dll_NtQueryInformationFile
sub esp, 0x14
test eax, eax
js 0x6adb92b7
mov eax, dword [esp + 0x48]
test edi, edi
setne dl
shr eax, 0xb
and eax, 1
cmp dl, al
je 0x6adb925c
test edi, edi
je 0x6adb9318
lea eax, [esp + 0x26]
mov dword [esp], esi
mov edx, 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x9c040
mov word [esp + 0x26], dx
call fcn.6adb8020
mov esi, eax
test eax, eax
jns 0x6adb925c
jmp 0x6ae11f01
xor eax, eax
ret
xor eax, eax
mov dword [esp], esi
mov word [esp + 0x26], ax
lea eax, [esp + 0x26]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], eax
mov dword [esp + 4], 0x9c040
call fcn.6adb8020
mov esi, eax
test eax, eax
jns 0x6adb925c
jmp 0x6ae11ed3
mov eax, ebx
call fcn.6adb8230
mov edx, str.clear
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0x6ae24920
mov dword [esp], esi
call fcn.6ae11e11
mov eax, 0x39
jmp 0x6adb925e
mov eax, ebx
call fcn.6adb8230
mov edx, 0x6ae2491c
jmp 0x6ae11edf