joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45541e
Capabilities:
Get common file path

Disassembly:
push 0x78
mov eax, 0x470a8a
call fcn.00443402
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
lea eax, [ebp - 0x71]
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x70], 0x47d68c
mov dword [ebp - 0x48], 0x484b70
call fcn.00402580
mov edi, 0x104
lea eax, [ebp - 0x80]
push edi
lea ecx, [ebp - 0x70]
push eax
mov dword [ebp - 4], ebx
call fcn.0045733b
cmp dword [ebp + 0xc], 1
jne 0x4554d6
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.0040fe80
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040cf55
inc bl
je 0x4554af
lea ecx, [ebp - 0x2c]
call fcn.004346d8
push 0x49a244
lea eax, [ebp - 0x2c]
push eax
call fcn.00443342
push 0
lea eax, [ebp - 0x71]
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.0040c968
mov byte [ebp - 4], 2
jmp 0x45552f
cmp dword [ebp + 0xc], 2
jne 0x455549
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040fe80
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040cf55
inc bl
jne 0x455499
push 0
lea eax, [ebp - 0x71]
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.0040c968
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.00420282
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401580
jmp 0x45557b
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.0040fe80
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
lea ecx, [ebp - 0x80]
sbb bl, bl
mov byte [ebp - 4], 0
call fcn.0040cf55
inc bl
jne 0x455499
push 0x478f28
lea ecx, [ebp - 0x70]
call fcn.00455948
push 0
push eax
mov ecx, esi
mov dword [esi], 0x47d68c
mov dword [esi + 0x28], 0x484b70
call fcn.0040c865
lea ecx, [ebp - 0x70]
call fcn.00401580
mov eax, esi
call fcn.004433b1
ret

Function at 0x455661
Capabilities:
Write file on windows

Disassembly:
push 0x88
mov eax, 0x470aed
call fcn.00443402
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
push 0
inc ebx
cmp eax, 0xffffffff
lea ecx, [ebp - 0x94]
push ecx
cmove eax, ebx
push eax
push edx
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4556d9
push eax
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.0040c865
and dword [ebp - 4], 0
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.004343b1
push 0x497600
lea eax, [ebp - 0x90]
push eax
call fcn.00443342
mov eax, dword [ebp - 0x94]
call fcn.004433b1
ret 8
Function at 0x45599f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x455a24
mov esi, dword [ebp + 8]
push edi
push esi
lea eax, [ebp + 0x10]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x455a1d
mov ecx, dword [edi]
test ecx, ecx
je 0x455a18
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x455a0e
cmp edx, 2
jbe 0x455a00
cmp edx, 7
jne 0x455a0e
test cl, 1
jne 0x455a0e
shr ecx, 1
cmp ecx, 1
jb 0x455a0e
cmp word [esi + ecx*2 - 2], bx
jne 0x455a0e
cmp ecx, 1
jbe 0x455a1d
cmp word [esi + ecx*2 - 4], bx
jmp 0x455a0c
test cl, 1
jne 0x455a0e
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x455a1d
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x455a1d
xor ecx, ecx
mov word [esi], cx
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push 0x80004005
call fcn.004121be
int3

Function at 0x45624d
Capabilities:
Get file attributes

Disassembly:
push 0
mov eax, 0x471881
call fcn.004433cf
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x38], bl
je 0x456279
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x4562c0
push 0x80
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
mov edi, 0x47d68c
mov esi, 0x484b70
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c865
call fcn.00459fc7
pop ecx
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], edi
mov dword [ecx + 0x28], esi
call fcn.0040c865
call fcn.004561cf
add esp, 0x30
test eax, eax
setne bl
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
call fcn.0044339d
ret
Function at 0x4562d0
Capabilities:
Check if file exists

Disassembly:
push 0xc8
mov eax, 0x470bc8
call fcn.00443402
xor ebx, ebx
test byte [ebp + 0x38], 0x10
mov dword [ebp - 4], ebx
je 0x45632e
lea ecx, [ebp + 8]
call fcn.0043b24c
test al, al
je 0x45632e
push dword [ebp + 0x38]
lea eax, [ebp + 8]
sub esp, 0x30
mov ecx, esp
push ebx
push eax
mov dword [ecx], 0x47d68c
mov dword [ecx + 0x28], 0x484b70
call fcn.0040c865
call fcn.004564b3
add esp, 0x34
mov bl, al
lea ecx, [ebp + 8]
call fcn.00401580
mov al, bl
jmp 0x4564ad
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov dword [ecx], 0x47d68c
mov dword [ecx + 0x28], 0x484b70
call fcn.0040c865
call fcn.00457356
add esp, 0x30
cmp eax, 0xffffffff
je 0x45636f
test byte [ebp + 0x38], 4
je 0x456361
test al, 0x10
je 0x45636b
test byte [ebp + 0x38], 8
je 0x45631f
test al, 0x10
je 0x45631f
mov bl, 1
jmp 0x45631f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
je 0x4564a3
cmp esi, 3
je 0x4564a3
cmp esi, 5
jne 0x456457
lea ecx, [ebp - 0xcc]
call fcn.00455742
or dword [ebp - 0xd0], 0xffffffff
lea eax, [ebp - 0xcc]
push eax
sub esp, 0x30
mov ecx, esp
push ebx
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
mov dword [ecx], 0x47d68c
mov dword [ecx + 0x28], 0x484b70
call fcn.0040c865
call fcn.0045700e
mov esi, eax
add esp, 0x34
cmp esi, 0xffffffff
je 0x45642e
lea ecx, [ebp - 0xd0]
call fcn.0042c6a0
test byte [ebp + 0x38], 4
mov dword [ebp - 0xd0], esi
je 0x4563fa
test byte [ebp - 0xcc], 0x10
je 0x456409
test byte [ebp + 0x38], 8
je 0x45640b
test byte [ebp - 0xcc], 0x10
je 0x45640b
mov bl, 1
lea ecx, [ebp - 0xd0]
call fcn.0042c6a0
lea ecx, [ebp - 0x70]
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
jmp 0x45631f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0xd0]
mov esi, eax
call fcn.0042c6a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], bl
call fcn.00401580
lea ecx, [ebp - 0xa0]
call fcn.00401580
test byte [ebp + 0x38], 0x20
je 0x45631f
push ebx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x47d68c
mov dword [ebp - 0x18], 0x484b70
call fcn.0040c865
push 1
push esi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.0043440c
push 0x497600
lea eax, [ebp - 0x90]
push eax
call fcn.00443342
lea ecx, [ebp + 8]
call fcn.00401580
xor al, al
call fcn.004433b1
ret
Function at 0x4597ac
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0045885d
test al, al
je 0x45981b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45981b
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004423a3
leave
ret

Function at 0x459d22
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.00401410
mov esi, eax
test esi, esi
jne 0x459d6e
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x4a7740], esi
call fcn.004013e0
lea ecx, [ebp + 0xc]
call fcn.00401580
lea ecx, [ebp + 0x3c]
call fcn.00401580
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x459d96
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x459dc8
xor al, al
jmp 0x459de1
cmp dword [ebp - 0x108], 2
jne 0x459ddf
cmp dword [ebp - 0x114], 5
jb 0x459ddf
xor eax, eax
inc eax
jmp 0x459de1
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004423a3
leave
ret
Function at 0x1003fbe0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push 0
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1003fc1f
push 4
lea edx, [esp + 4]
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 8
ret

Function at 0x1004b0b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10076610]
jne 0x1004b0bc
repz ret
jmp fcn.100515de

Function at 0x1005959f
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100595da
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100595c1
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100595d2
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100595dc
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100595b7
xor eax, eax
pop edi
pop esi
ret

Function at 0x100598c9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.1005956f
push eax
push esi
push dword [ebp + 8]
call fcn.10059524
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.1005956f
push eax
push esi
push dword [ebp + 8]
call fcn.10059524
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1005956f
push eax
push esi
push dword [ebp + 8]
call fcn.10059524
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.1005955f
aas
adc dword [ebx + 0x7c9d8840], esp
invalid
Function at 0x100599f4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.1005955f
in eax, dx
adc bh, byte [esi + 0x7c858dce]
invalid

Function at 0x1006095d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10051756
and dword [ebp - 4], 0
cmp dword [0x10078174], 0
mov ebx, eax
jne 0x10060a0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10060abf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10060abf
push eax
call fcn.100516e4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10078174], eax
call esi
push eax
call fcn.100516e4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10078178], eax
call esi
push eax
call fcn.100516e4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1007817c], eax
call esi
push eax
call fcn.100516e4
pop ecx
mov dword [0x10078184], eax
test eax, eax
je 0x10060a0e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100516e4
pop ecx
mov dword [0x10078180], eax
mov eax, dword [0x10078180]
cmp eax, ebx
je 0x10060a66
cmp dword [0x10078184], ebx
je 0x10060a66
push eax
call fcn.1005175f
push dword [0x10078184]
mov esi, eax
call fcn.1005175f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10060a66
test edi, edi
je 0x10060a66
call esi
test eax, eax
je 0x10060a5d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10060a5d
test byte [ebp - 0xc], 1
jne 0x10060a66
or dword [ebp + 0x10], 0x200000
jmp 0x10060a9f
mov eax, dword [0x10078178]
cmp eax, ebx
je 0x10060a9f
push eax
call fcn.1005175f
pop ecx
test eax, eax
je 0x10060a9f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10060a9f
mov eax, dword [0x1007817c]
cmp eax, ebx
je 0x10060a9f
push eax
call fcn.1005175f
pop ecx
test eax, eax
je 0x10060a9f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10078174]
call fcn.1005175f
pop ecx
test eax, eax
je 0x10060abf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10060ac1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x59c6d2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x10003cc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10003cd9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10003d14
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x10003d10
lea ebx, [ebx]
cmp esi, edx
jae 0x10003d14
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x10003d00
cmp esi, edx
jb 0x10003d1b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10004cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023626
mov eax, dword fs:[0]
push eax
sub esp, 0x114
push ebx
push esi
push edi
mov eax, dword [0x10034034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x18], ebx
mov esi, ecx
push 0
push dword [esi]
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], eax
call fcn.10004e80
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x9c]
test edx, edx
jne 0x10004d12
xor ecx, ecx
jmp 0x10004d20
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004d17
sub ecx, edi
push ecx
push edx
mov ecx, ebx
call fcn.100036b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x98]
cmp eax, ecx
je 0x10004d4a
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10004e45
push dword [ebx]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call ebx
cmp eax, 0xffffffff
jne 0x10004e45
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.10004bc0
mov esi, dword [ebp - 0x14]
or edi, 0xffffffff
test eax, eax
je 0x10004e27
push 0
lea eax, [ebp - 0x11c]
push esi
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x120], eax
call fcn.10004e80
mov byte [ebp - 4], 2
push dword [ebp - 0x120]
lea ecx, [ebp - 0x10]
call fcn.10003a00
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x120]
lea ecx, [ebp - 0x11c]
cmp eax, ecx
je 0x10004df1
push eax
call dword [sym.imp.MSVCR110.dll_free]
add esp, 4
push dword [ebp - 0x10]
call ebx
cmp eax, 0xffffffff
je 0x10004e07
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x10]
push eax
call fcn.100035e0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10004e27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10004e45
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000abc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023e18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10034034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000ad76
cmp word [esi], 0
je 0x1000ad76
lea ebx, [edi + 0xc]
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1000a7c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1000ac2f
lea edi, [eax + 2]
jmp 0x1000ad47
cmp dword [edi + 0x10], 0
jne 0x1000ac46
push edi
push ecx
push eax
mov ecx, ebx
call fcn.10003e30
mov dword [edi + 0x10], 1
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10005c70
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10004cb0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000ac96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x1000ad6c
cmp eax, ecx
jg 0x1000ad6c
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x1000acd4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000acd4
test al, 0x10
je 0x1000acd4
push 1
push ecx
lea ecx, [ebp + 8]
call fcn.1000b1a0
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.1000b060
test eax, eax
je 0x1000ace7
mov edi, 5
jmp 0x1000ad29
mov eax, dword [0x1003595c]
test eax, eax
jne 0x1000ad03
push 0x1c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1003595c], eax
test eax, eax
je 0x1000ad10
push esi
push dword [ebp - 0x18]
call eax
add esp, 8
test eax, eax
jne 0x1000ad17
mov edi, 3
jmp 0x1000ad29
push esi
lea ecx, [edi + 0x14]
call fcn.10003910
mov dword [ebp - 0x1c], 1
xor edi, edi
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1000ad47
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000a820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10003dd0
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1000ad90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10023e18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10034034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000af1c
cmp word [esi], 0
je 0x1000af1c
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1000a7c0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x1000ae00
mov edi, 2
jmp 0x1000aeed
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10005c70
lea edx, [ebp + 8]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.10004cb0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000ae52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
lea eax, [ecx - 1]
test eax, eax
js 0x1000af12
cmp eax, ecx
jg 0x1000af12
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x1000ae90
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000ae90
test al, 0x10
je 0x1000ae90
push 1
push ecx
lea ecx, [ebp + 8]
call fcn.1000b1a0
mov esi, dword [ebp + 8]
mov eax, dword [0x10035958]
test eax, eax
jne 0x1000aead
push 0x1d
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10035958], eax
test eax, eax
je 0x1000aeba
push esi
push dword [ebp - 0x18]
call eax
add esp, 8
test eax, eax
jne 0x1000aec1
mov edi, 3
jmp 0x1000aed2
push esi
mov ecx, edi
call fcn.1000b0c0
mov dword [ebp - 0x1c], 1
xor edi, edi
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x1000aeed
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.1000a820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.10003dd0
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4