joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6190
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x520084]
mov edi, eax
add esp, 8
test edi, edi
je 0x4c61e7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4c61ff
cmp esi, ebx
je 0x4c61ff
cmp esi, 0x8000
ja 0x4c61ff
cmp esi, ebx
jb 0x4c61f8
push esi
push edi
call dword [0x520084]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4c61b0
push ebp
call dword [0x520080]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x520080]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4cbc70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x5200a8]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push eax
mov ebp, dword [edi + 0x424]
or esi, 0xffffffff
mov ebx, dword [edi]
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4cbcd2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push edi
call fcn.004b0fa0
add esp, 8
cmp esi, 0xffffffff
jne 0x4cbcf6
push str.Error_accept__ing_server_connect
push ebx
call fcn.004b03f0
add esp, 8
mov eax, 0x1e
jmp 0x4cbd65
push str.Connection_accepted_from_server_n
push ebx
call fcn.004b04d0
push 1
push esi
mov byte [edi + 0x514], 0
mov dword [edi + 0x424], esi
call fcn.004be520
add esp, 0x10
mov byte [edi + 0x7f0], 1
cmp dword [ebx + 0x610], 0
je 0x4cbd63
push 1
push ebx
call fcn.004a2150
mov eax, dword [ebx + 0x610]
push 1
push esi
push dword [ebx + 0x614]
call eax
push 0
push ebx
mov esi, eax
call fcn.004a2150
add esp, 0x1c
test esi, esi
je 0x4cbd63
push edi
call fcn.004cc200
add esp, 4
mov eax, 0x2a
jmp 0x4cbd65
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e635f
add esp, 0x88
ret
Function at 0x4d31e0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push 0
mov byte [esp + 0x16], al
lea eax, [esp + 0x14]
mov edi, dword [esi]
push 3
push eax
push dword [esi + 0x420]
mov byte [esp + 0x20], 0xff
mov byte [esp + 0x21], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4d322c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.004b03f0
add esp, 0xc
push dword [esp + 0x18]
push ebx
push str.SENT
push dword [esi]
call fcn.004d2df0
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x4d3370
Capabilities:
Send data
Send data on socket

Disassembly:
cmp dword [esp + 8], 0x1f
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebp, dword [ebp]
mov ebx, dword [ebp + 0x14c]
jne 0x4d34bc
lea ecx, [ebx + 0x1cb0]
push edi
lea edi, [ebx + 0x1eb0]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x4d33a7
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x4d33bb
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d33bb
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4d3426
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d3426
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d3426
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d3426
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d3426
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4d3426
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebx + 0x1eb4], eax
lea esi, [ebx + 0x1cb0]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push ebp
call fcn.004d2ef0
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [esp + 0x20]
push dword [esi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4d347c
call edi
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.004b03f0
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.004d3250
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x420]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x4d34bb
call edi
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.004b03f0
add esp, 0xc
pop edi
pop ebp
pop ebx
ret
Function at 0x4e60d0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x4e611c
push ebx
mov ebx, dword [esp + 0x10]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x4e60e1
pop ebx
pop edi
pop esi
ret

Function at 0x4e6230
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x52007c]
mov esi, eax
add esp, 4
test esi, esi
jne 0x4e625b
pop esi
pop ebp
add esp, 0xc
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x4e62aa
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [edi]
push ebx
push dword [esp + 0x2c]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x28], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov ebx, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x28], ebx
jmp 0x4e62b2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x30]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4e6323
mov ebp, dword [esp + 0x14]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4e62e0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x4e6355
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x517846
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x517847
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x4e6330
pop edi
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x4e7929
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4e7968
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4e7968
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e7968
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4e7968
cmp dword [ecx + 0x74], 0xe
jbe 0x4e7968
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4e7c94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004e7c70
pop esi
leave
ret 8
Function at 0x1005c4a
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x1019779], 0
je 0x1005ced
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 4]
call fcn.01005bd9
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01005c13
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x1005ce0
push edi
push 0x1001408
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1005cd7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push 0x10013fc
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x1005cc5
push 0x10013e4
push edi
call esi
mov esi, eax
test esi, esi
je 0x1005cc5
push dword [ebp - 4]
call ebx
push eax
call esi
jmp 0x1005ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
jmp 0x1005cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
pop edi
lea ecx, [ebp - 4]
call fcn.01005bf7
mov eax, esi
pop esi
leave
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
leave
ret

Function at 0x1005da1
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor esi, esi
push 0xf003f
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x1005e74
push edi
push 0xf01ff
push 0x100143c
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, esi
je 0x1005e55
lea eax, [ebp - 0x28]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1005e37
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
mov ebx, 0x3e8
push ebx
call esi
lea eax, [ebp - 0x28]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
jmp 0x1005e1f
cmp dword [ebp - 0x24], 3
jne 0x1005e25
push ebx
call esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call edi
test eax, eax
jne 0x1005e0f
xor esi, esi
cmp dword [ebp - 0x24], 1
pop ebx
je 0x1005e4a
mov dword [ebp - 4], 0x80004005
jmp 0x1005e4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x426
jne 0x1005e4a
mov dword [ebp - 4], esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1005e68
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x424
jne 0x1005e68
mov dword [ebp - 4], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
jmp 0x1005e7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
je 0x1005e91
push dword [ebp - 4]
push 0x1001414
call fcn.0100d383
pop ecx
pop ecx
xor eax, eax
cmp dword [ebp - 4], esi
pop esi
sete al
leave
ret
Function at 0x1006097
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1019778], 0
je 0x10060b9
mov al, 1
jmp 0x100622d
push ebx
xor ebx, ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x10060fc
xor al, al
jmp 0x100622c
cmp dword [0x101977c], 5
push esi
push edi
mov dword [ebp - 0x10], ebx
jb 0x100614c
push 0x1001470
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x100621b
push 0x1001458
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x1006140
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x1c]
push ebx
call eax
test eax, eax
jne 0x1006140
mov dword [ebp - 0x10], ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100621b
mov esi, 0x400
push esi
call fcn.0100d7aa
mov edi, eax
pop ecx
cmp edi, ebx
je 0x10061b1
lea eax, [ebp - 0x18]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1006214
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
cmp dword [ebp - 0x14], esi
jbe 0x10061dc
push edi
call fcn.0100d79a
push dword [ebp - 0x14]
call fcn.0100d7aa
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x10061c0
push 0x1001448
call fcn.0100d383
pop ecx
xor al, al
jmp 0x100622a
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push edi
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x1006212
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x1006212
lea esi, [edi + 4]
push dword [esi]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100620b
inc ebx
add esi, 8
cmp ebx, dword [edi]
jb 0x10061f2
jmp 0x1006212
mov dword [ebp - 0x10], 1
xor ebx, ebx
push edi
call fcn.0100d79a
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x10], ebx
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100d419
leave
ret
Function at 0x1006854
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x114], eax
cmp eax, ebx
jne 0x1006880
mov eax, 0x10017b0
push eax
push 0x1001748
call fcn.0100d383
pop ecx
pop ecx
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], ebx
call fcn.01005bd9
push eax
push 0xf003f
push ebx
mov esi, 0x1001714
push esi
push 0x80000002
call fcn.01005c13
add esp, 0x14
cmp eax, ebx
je 0x10068f0
cmp eax, 2
jne 0x10068df
mov bl, 1
lea ecx, [ebp - 0x10c]
call fcn.01005bf7
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret
push eax
push esi
push 0x10016ec
call fcn.0100d383
add esp, 0xc
jmp 0x10068c3
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.0100d7e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
mov edi, 0x100
mov dword [ebp - 0x108], ebx
push ebx
jmp 0x10069a4
lea eax, [ebp - 0x104]
push eax
call fcn.010062bf
pop ecx
test eax, eax
je 0x1006986
cmp dword [ebp - 0x114], ebx
je 0x1006961
push dword [ebp - 0x114]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1006986
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x10c]
call fcn.010065a8
add esp, 0xc
test eax, eax
je 0x10068c3
cmp byte [ebp + 8], bl
je 0x100698c
inc dword [ebp - 0x108]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], edi
call esi
test eax, eax
je 0x1006931
jmp 0x10068c1
Function at 0x1006e84
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor edi, edi
or ebx, 0xffffffff
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x1006f03
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x1006ec7
mov dword [ebp - 4], 8
jmp 0x1006f0c
push edi
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1006f03
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x1001a24
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1006f0c
cmp dword [ebp - 0x14], 0
je 0x1006f0c
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x1006f0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x1006f17
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1006f20
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
test eax, eax
je 0x1006f2f
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
leave
ret
Function at 0x10077e3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
or dword [ebp - 0x110], 0xffffffff
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push eax
push ebx
call fcn.01005d00
pop ecx
pop ecx
test eax, eax
je 0x10078f6
push esi
mov esi, dword [ebp - 0x110]
cmp esi, 2
ja 0x10078ea
cmp dword [ebp + 0x10], 0
jne 0x1007835
cmp eax, 2
je 0x1007840
cmp dword [ebp + 0x10], 1
jne 0x100784a
cmp eax, 1
jne 0x100784a
push 0x1002660
jmp 0x10078ef
xor edx, edx
cmp dword [ebp + 0x10], edx
lea eax, [esi + esi]
setne dl
xor ecx, ecx
test edx, edx
sete cl
add ecx, eax
imul ecx, ecx, 0x104
lea ecx, [ecx + 0x1019160]
cmp byte [ecx], 0
jne 0x1007892
push ebx
push 0x1002610
lea eax, [ebp - 0x10c]
push 0x105
push eax
call fcn.0100742b
add esp, 0x10
lea eax, [ebp - 0x10c]
push eax
jmp 0x10078ef
add eax, edx
imul eax, eax, 0x104
add eax, 0x1019160
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10078a2
push edi
sub eax, esi
push ecx
mov edi, eax
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.0100734b
lea eax, [ebx + edi]
cmp byte [eax], 0
pop edi
je 0x10078d8
push eax
push esi
lea eax, [ebp - 0x10c]
push eax
call fcn.010073d2
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.0100734b
jmp 0x10078f5
push 0x10025c8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0100d419
leave
ret

Function at 0x1007c9d
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0x100167c
xor esi, esi
or edi, 0xffffffff
call fcn.0100623e
pop ecx
test al, al
je 0x1007d3e
cmp byte [ebp + 0xc], 0
mov eax, 0x80
je 0x1007ccc
mov eax, 0x2000080
push 0
push eax
push 3
push 0
push 1
push 0xe0000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1007d19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
mov esi, eax
mov eax, 0x1002770
jne 0x1007d02
mov eax, 0x1002768
push esi
push dword [ebp + 8]
push eax
push 0x100273c
call fcn.0100d383
add esp, 0x10
jmp 0x1007dac
push 1
push edi
call fcn.01006338
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1007d39
push 1
push edi
call fcn.01006454
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1007d3e
cmp esi, 0x78
jne 0x1007d7a
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1007d7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
mov esi, eax
mov eax, 0x1002770
jne 0x1007d68
mov eax, 0x1002768
push esi
push dword [ebp + 8]
push eax
push 0x100270c
call fcn.0100d383
add esp, 0x10
test esi, esi
je 0x1007da0
cmp byte [ebp + 0xc], 0
mov eax, 0x1002770
jne 0x1007d8e
mov eax, 0x1002768
push esi
push dword [ebp + 8]
push eax
push 0x10026e0
call fcn.0100d383
add esp, 0x10
cmp edi, 0xffffffff
je 0x1007dac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1007db7
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101803c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1007dee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1007dee
mov al, 1
jmp 0x1007eb1
push ebx
xor ebx, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp byte [ebp + 0xc], bl
jne 0x1007e08
push edi
call esi
test eax, eax
jne 0x1007e98
push ebx
push edi
call fcn.01007c9d
pop ecx
pop ecx
mov dword [ebp - 0x108], eax
cmp byte [ebp + 0xc], bl
jne 0x1007e6c
push edi
call esi
test eax, eax
jne 0x1007e6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0x100
mov esi, eax
lea eax, [ebp - 0x104]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x1007e53
push edi
push esi
push 0x100281c
jmp 0x1007e60
lea eax, [ebp - 0x104]
push eax
push edi
push 0x10027f4
call fcn.0100d383
add esp, 0xc
xor al, al
jmp 0x1007eaf
cmp dword [ebp - 0x108], ebx
je 0x1007e8e
mov eax, 0x10027cc
cmp byte [ebp + 0xc], bl
jne 0x1007e83
mov eax, 0x10027ac
push edi
push eax
call fcn.0100d383
xor al, al
jmp 0x1007ead
mov eax, 0x1002790
cmp byte [ebp + 0xc], bl
jne 0x1007e9d
mov eax, 0x1002778
push edi
push eax
call fcn.0100d383
mov byte [0x101977a], 1
mov al, 1
pop ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100d419
leave
ret