joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a40
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x401a7d
inc esi
cmp esi, 0xd
jl 0x401a53
lea eax, [ebp - 0xc]
push eax
call fcn.00401ab2
or eax, eax
pop ecx
pop esi
je 0x401aa4
push 2
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jmp 0x401aa6
sub eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401caa
leave
ret

Function at 0x401ab2
Capabilities:
Delete file

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x108
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x108]
push str._sreadme.1xt
push eax
xor esi, esi
call fcn.00401cb9
add esp, 0xc
push esi
push esi
push 1
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401afe
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
push esi
pop eax
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret

Function at 0x401b21
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4348f4]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402ce6
push dword [esp + 0x24]
call fcn.00401df1
pop ecx
pop ecx
call fcn.00401dfe
sub edx, edx
mov ecx, 0x4538
div ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [esp + 0x44]
push edx
pop esi
add esi, 0x8ff1
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
mov dword [esp + 0x1c], eax
call ebp
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x401b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push 3
push edi
push 2
push 0x40000000
push dword [esp + 0x30]
call ebx
push eax
pop ebx
push edi
push ebx
call ebp
mov ecx, 0x16e360
cmp dword [esp + 0x10], ecx
jbe 0x401bc4
sub esi, eax
add esi, ecx
jmp 0x401bcd
cmp dword [esp + 0x10], eax
ja 0x401bcd
xor esi, esi
inc esi
push esi
call fcn.00402d80
pop ecx
push 2
push edi
push edi
push ebx
push eax
pop ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
jne 0x401bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
sub eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x401c0b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
xor ebx, ebx
mov dword [ebp - 0x258], 0x2a2e2a
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c99
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x254]
push eax
push edi
call esi
test eax, eax
je 0x401c99
cmp ebx, 4
jge 0x401c94
lea eax, [ebp - 0x254]
push eax
push edi
inc ebx
call esi
or eax, eax
jne 0x401c7b
cmp ebx, 4
jl 0x401c99
xor eax, eax
inc eax
jmp 0x401c9b
sub eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret

Function at 0x401caa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4110fc]
jne 0x401cb4
repz ret
jmp fcn.00403039

Function at 0x403d3b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x434164]
call fcn.004041ee
or eax, eax
pop ecx
je 0x403d51
pop ebp
jmp eax
push 2
call fcn.004077da
pop ecx
pop ebp
jmp fcn.00403c3f
Function at 0x404531
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x40454c
call fcn.00404284
sub eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x434168], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x43416c], eax
call esi
push str.FlsFree
push edi
mov dword [0x434170], eax
call esi
cmp dword [0x434168], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x434174], eax
je 0x4045ac
cmp dword [0x43416c], 0
je 0x4045ac
cmp dword [0x434170], 0
je 0x4045ac
test eax, eax
jne 0x4045d0
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x43416c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x434168], 0x404251
mov dword [0x434170], esi
mov dword [0x434174], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x411284], eax
je 0x4046b0
push dword [0x43416c]
push eax
call esi
test eax, eax
je 0x4046b0
call fcn.004069c2
push dword [0x434168]
call fcn.00404182
push dword [0x43416c]
mov dword [0x434168], eax
call fcn.00404182
push dword [0x434170]
mov dword [0x43416c], eax
call fcn.00404182
push dword [0x434174]
mov dword [0x434170], eax
call fcn.00404182
add esp, 0x10
mov dword [0x434174], eax
call fcn.00408ff4
or eax, eax
je 0x4046ab
push 0x404410
push dword [0x434168]
call fcn.004041ee
pop ecx
call eax
cmp eax, 0xffffffff
mov dword [0x411280], eax
je 0x4046ab
push 0x214
push 1
call fcn.0040517d
mov esi, eax
or esi, esi
pop ecx
pop ecx
je 0x4046ab
push esi
push dword [0x411280]
push dword [0x434170]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x4046ab
push 0
push esi
call fcn.004042c1
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
sub eax, eax
inc eax
jmp 0x4046b2
call fcn.00404284
sub eax, eax
pop esi
pop edi
ret
Function at 0x406a0e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
sub edi, edi
cmp ebx, dword [edi*8 + 0x4119e8]
je 0x406a29
inc edi
cmp edi, 0x17
jl 0x406a1a
cmp edi, 0x17
jae 0x406ba9
push ebp
push 3
call fcn.0040b683
cmp eax, 1
pop ecx
je 0x406b75
push 3
call fcn.0040b683
test eax, eax
pop ecx
jne 0x406a5d
cmp dword [0x4110f8], 1
je 0x406b75
cmp ebx, 0xfc
je 0x406ba8
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4342c8
push ebp
call fcn.004050d8
add esp, 0xc
test eax, eax
je 0x406a93
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push 0x104
mov esi, 0x4342e1
push esi
push 0
mov byte [0x4343e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
or eax, eax
jne 0x406ad7
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004050d8
add esp, 0xc
test eax, eax
je 0x406ad7
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00403c3f
add esp, 0x14
push esi
call fcn.00401d50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406b1c
push esi
call fcn.00401d50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4345dc
push 0x40eb04
sub ecx, eax
push ecx
push eax
call fcn.00409ab6
add esp, 0x14
or eax, eax
je 0x406b1c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
jmp 0x406b1e
xor esi, esi
push 0x40eb00
push ebx
push ebp
call fcn.004099f7
add esp, 0xc
or eax, eax
je 0x406b3e
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push dword [edi*8 + 0x4119ec]
push ebx
push ebp
call fcn.004099f7
add esp, 0xc
or eax, eax
je 0x406b60
push esi
push esi
push esi
push esi
push esi
call fcn.00403c3f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040b4e5
add esp, 0xc
jmp 0x406ba8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x406ba8
cmp ebp, 0xffffffff
je 0x406ba8
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4119ec]
push dword [esi]
call fcn.00401d50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4070e0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x4346e8]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
sub ebx, ebx
sub esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x407129
call edi
mov esi, eax
cmp esi, ebx
je 0x407110
mov dword [0x4346e8], 1
jmp 0x407132
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407124
push ebp
pop eax
mov dword [0x4346e8], eax
jmp 0x407129
mov eax, dword [0x4346e8]
cmp eax, 1
jne 0x4071b6
cmp esi, ebx
jne 0x407145
call edi
push eax
pop esi
cmp esi, ebx
jne 0x407145
xor eax, eax
jmp 0x40720e
cmp word [esi], bx
mov eax, esi
je 0x40715a
add eax, ebp
cmp word [eax], bx
jne 0x40714c
add eax, ebp
cmp word [eax], bx
jne 0x40714c
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4071ab
push ebp
call fcn.0040513d
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4071ab
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4071a7
push dword [esp + 0x10]
call fcn.0040504a
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push ebx
pop eax
jmp 0x40720e
cmp eax, ebp
je 0x4071be
cmp eax, ebx
jne 0x40713e
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x40713e
cmp byte [esi], bl
je 0x4071dc
inc eax
cmp byte [eax], bl
jne 0x4071d2
inc eax
cmp byte [eax], bl
jne 0x4071d2
sub eax, esi
inc eax
push eax
pop ebp
push ebp
call fcn.0040513d
push eax
pop edi
cmp edi, ebx
pop ecx
jne 0x4071fa
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40713e
push ebp
push esi
push edi
call fcn.00405260
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
pop eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40b0c0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x40b0ce
sub eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b0cb
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
push ecx
pop eax
ret

Function at 0x40b0f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
or esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40b12c
mov edi, dword [esp + 0x14]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x40b122
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x40b12e
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40b112
sub eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
sub ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
test eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x1002637
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 1
push 0x1b
push 0x1001468
lea ecx, [ebp - 0x40]
call fcn.0100771f
mov esi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
push 0x22
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], 0x1001e60
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
pop eax
cmp esi, ebx
jne 0x1002689
mov dword [ebp - 0x40], 0x80070057
mov word [ebp - 0x3a], ax
jmp 0x1002742
push dword [esi]
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10026ce
test al, 0x10
je 0x10026ab
mov dword [ebp - 0x40], ebx
push 0x2a
jmp 0x100273d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10026c4
call fcn.01008973
push 0x34
mov dword [ebp - 0x40], eax
pop eax
jmp 0x1002680
push 0x34
pop eax
mov dword [ebp - 0x40], ebx
mov word [ebp - 0x3c], ax
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0x1001398
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x10026ec
call fcn.01008973
push 0x3f
jmp 0x10026be
mov esi, dword [esi]
push 0x3f
pop eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1002742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1002726
xor eax, eax
cmp eax, ebx
jle 0x1002734
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 0x40], eax
push 0x4c
jl 0x10026c1
pop eax
mov word [ebp - 0x3c], ax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [ebp - 0x40]
lea ecx, [ebp - 0x1c]
call fcn.01009e95
lea ecx, [ebp - 0x40]
call fcn.010078e6
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x1006fa5
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x100a9c0
call fcn.01007264
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100c458
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1006dba
cmp eax, esi
jne 0x1006dad
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1006dbd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1006d94
xor esi, esi
inc esi
mov eax, dword [0x100c454]
cmp eax, esi
jne 0x1006dd0
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1006e0b
mov eax, dword [0x100c454]
test eax, eax
jne 0x1006e05
mov dword [0x100c454], esi
push 0x1001220
push 0x1001214
call fcn.01006d11
pop ecx
pop ecx
test eax, eax
je 0x1006e0b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1006ed5
mov dword [0x100c0fc], esi
mov eax, dword [0x100c454]
cmp eax, esi
jne 0x1006e2f
push 0x1001210
push 0x1001204
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100c454], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1006e3c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100c464], ebx
je 0x1006e5d
push 0x100c464
call fcn.010071d9
pop ecx
test eax, eax
je 0x1006e5d
push ebx
push 2
push ebx
call dword [0x100c464]
push dword [0x100c0e4]
push dword [0x100c0e8]
push dword [0x100c0e0]
call fcn.01004173
add esp, 0xc
mov dword [0x100c0f8], eax
cmp dword [0x100c0ec], ebx
jne 0x1006ebb
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100c0fc], ebx
jne 0x1006ec9
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100c0f8]
call fcn.010072a9
ret
call fcn.010073b1
jmp 0x1006d72
Function at 0x10078e6
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
jge 0x10079c0
push eax
call sub.SXSHARED.dll_SxTracerShouldTrackFailure
mov dword [ebp - 4], eax
mov ecx, 0x100199c
cmp eax, edi
jne 0x100791a
mov ecx, 0x1001994
cmp dword [esi + 8], edi
jne 0x1007956
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007956
test dword [eax + 0x1c], 0x2000000
je 0x1007956
push dword [esi]
movzx edx, word [esi + 6]
push edx
push ecx
movzx ecx, word [esi + 4]
push ecx
push dword [esi + 0x10]
push 0x100197c
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100768b
cmp dword [esi + 0x1c], edi
je 0x1007992
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
cmp ecx, dword [eax + 0x10]
je 0x1007992
mov eax, dword [eax + 0xc]
cmp eax, edi
je 0x1007975
push eax
call ebx
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi]
mov dword [esi + 0x1c], edi
mov dword [eax + 0x10], ecx
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x10079a4
mov ecx, dword [esi]
cmp ecx, dword [eax + 8]
je 0x1007a3b
cmp dword [esi + 8], edi
jne 0x10079b0
mov ecx, esi
call fcn.01007815
cmp dword [ebp - 4], edi
je 0x1007a3b
call sub.SXSHARED.dll_SxTracerDebuggerBreak
jmp 0x1007a3b
movzx eax, word [esi + 0xc]
cmp ax, di
jne 0x10079ea
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007a3b
test dword [eax + 0x1c], 0x8000000
je 0x1007a3b
push dword [esi + 0x10]
push 0x100197c
push 0x10
jmp 0x1007a30
cmp ax, 1
jne 0x1007a11
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007a3b
test dword [eax + 0x1c], 0x20000000
je 0x1007a3b
push dword [esi + 0x10]
push 0x100197c
push 0x11
jmp 0x1007a30
mov eax, dword [section..data]
cmp eax, section..data
je 0x1007a3b
test dword [eax + 0x1c], 0x20000
je 0x1007a3b
push dword [esi + 0x10]
push 0x100197c
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01007589
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x1007a6e
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x14], ecx
mov eax, dword [esi + 0x18]
cmp dword [esi + 0x14], edi
jne 0x1007a69
mov dword [eax + 8], edi
mov eax, dword [esi + 0x18]
push dword [eax + 0xc]
call ebx
mov eax, dword [esi + 0x18]
mov dword [eax + 0xc], edi
mov eax, dword [esi + 0x18]
mov dword [eax + 0x10], edi
jmp 0x1007a6e
mov ecx, dword [esi]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x1c]
cmp eax, edi
je 0x1007a7b
push eax
call ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x14], edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008369
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [section..data]
cmp eax, section..data
je 0x1008398
test dword [eax + 0x1c], 0x20000000
je 0x1008398
push 0x10019ac
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010020a5
push esi
push 1
push 0x1bb
push 0x1001aa0
lea ecx, [ebp - 0x3c]
call fcn.0100771f
xor esi, esi
mov eax, 0x1001e60
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov eax, 0x1c3
cmp dword [ebp + 8], esi
jne 0x10083e0
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x1008549
push ebx
mov ebx, dword [ebp + 0xc]
mov word [ebp - 0x38], ax
mov eax, 0x1c4
cmp ebx, 2
jae 0x1008402
mov dword [ebp - 0x3c], 0x80070057
mov word [ebp - 0x36], ax
jmp 0x1008548
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x3c], esi
mov word [ebp - 0x38], ax
call fcn.01008113
mov edi, 0x10019cc
push edi
push esi
push dword [ebp + 8]
mov esi, 0x1001a78
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0100a154
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1cb
jl 0x1008543
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1008473
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1008461
cmp eax, 3
jne 0x1008473
and dword [ebp - 0x3c], 0
mov eax, 0x1d3
mov word [ebp - 0x38], ax
jmp 0x1008547
push edi
dec ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.0100a154
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1d8
jl 0x1008543
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1008521
push edi
lea ebx, [eax - 1]
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.0100a154
add esp, 0x14
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1df
jl 0x1008543
push 1
push dword [ebp - 0xc]
mov word [ebp - 0x38], ax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10084fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10084f1
cmp eax, 0x20
je 0x10084f1
cmp eax, 5
jne 0x100852d
and dword [ebp - 0x3c], 0
mov eax, 0x1ec
mov word [ebp - 0x38], ax
push dword [ebp - 0xc]
call fcn.0100801f
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
call fcn.0100a841
mov dword [ebp - 0x3c], eax
test eax, eax
mov eax, 0x1f3
jl 0x1008543
mov word [ebp - 0x38], ax
mov eax, ebx
test eax, eax
ja 0x10084a5
jmp 0x1008547
test eax, eax
jle 0x100853b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x3c], eax
mov eax, 0x1ec
mov word [ebp - 0x36], ax
pop edi
pop ebx
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0xc]
call fcn.01009e95
lea ecx, [ebp - 0x18]
call fcn.01009e95
lea ecx, [ebp - 0x3c]
call fcn.010078e6
mov eax, esi
pop esi
leave
ret 8