joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e48
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x10027cf
call fcn.010026b8
sub esp, 0xe0
mov eax, dword [0x1003004]
push esi
push edi
push 0x11
mov dword [ebp - 0x10], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0xec]
rep stosd dword es:[edi], eax
push 0x40
mov dword [ebp - 0xec], 0x44
mov dword [ebp - 0xc0], 0x80
call dword [sym.imp.wbemcomn.dll_unsigned_short_int____stdcall_GetWMIADAPCmdLine_int_]
mov edi, eax
xor esi, esi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], esi
mov dword [ebp - 4], esi
cmp edi, esi
je 0x1001ef5
push 0x10011dc
push 0x40
lea eax, [ebp - 0x90]
push eax
call fcn.01001966
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xec]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
lea eax, [ebp - 0x90]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1001ef5
push dword [ebp - 0xa4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xa8]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.01001948
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
call fcn.010023bc
leave
ret

Function at 0x1001fb0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
mov dword [ebp - 8], eax
mov ebx, 0xca
mov edi, 0xc8
mov esi, 0xc9
jne 0x1001fec
push ebx
push edi
mov eax, 0x80041006
push esi
push eax
mov dword [ebp - 4], eax
call fcn.01001b2f
and dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
jl 0x1002096
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x1002014
cmp dword [ebp - 0xc], 3
je 0x1002020
mov dword [ebp - 4], 0x80041008
call fcn.01001f1f
cmp dword [ebp - 4], 0
jl 0x1002096
call fcn.0100277d
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x10013d0
push 4
push 0
push 0x1001480
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov dword [ebp - 4], eax
jl 0x1002087
push 0x10011fc
push 1
call dword [sym.imp.wbemcomn.dll_int___stdcall_EnablePrivilege_unsigned_long_int__unsigned_short_int_const__]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 0
push dword [edx + 8]
push eax
call dword [ecx + 0xc]
test eax, eax
mov dword [ebp - 4], eax
jge 0x100207c
push ebx
push edi
push esi
push eax
call fcn.01001b2f
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1002090
push ebx
push edi
push esi
push eax
call fcn.01001b2f
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10020a3
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
test esi, esi
jne 0x10020d4
push 0xcb
push 0xc8
push 0xc9
mov ebx, 0x80041006
push ebx
call fcn.01001b2f
and dword [ebp - 8], 0
test ebx, ebx
jl 0x10021ce
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x10020f8
cmp dword [ebp - 8], 4
je 0x1002102
mov ebx, 0x80041008
call fcn.01001f1f
test ebx, ebx
jl 0x10021cd
mov esi, dword [sym.imp.msvcrt.dll_wcscmp]
push 0x100124c
push dword [edi + 0xc]
call esi
test eax, eax
pop ecx
pop ecx
je 0x100213a
push 0x1001248
push dword [edi + 0xc]
call esi
test eax, eax
pop ecx
pop ecx
je 0x100213a
mov ebx, 0x80041008
call fcn.01001f1f
test ebx, ebx
jl 0x10021cd
mov eax, dword [edi + 0xc]
movzx esi, word [eax]
sub esi, 0x30
call fcn.0100277d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x10013d0
push 4
push 0
push 0x1001480
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
jl 0x10021b2
push 0x1001220
push 1
call dword [sym.imp.wbemcomn.dll_int___stdcall_EnablePrivilege_unsigned_long_int__unsigned_short_int_const__]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push esi
push dword [edi + 8]
push eax
call dword [ecx + 0x10]
mov ebx, eax
test ebx, ebx
jge 0x10021a7
push 0xcb
push 0xc8
push 0xc9
push ebx
call fcn.01001b2f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10021c7
push 0xcb
push 0xc8
push 0xc9
push ebx
call fcn.01001b2f
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10023bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003004]
jne 0x10023cd
test ecx, 0xffff0000
jne 0x10023cd
ret
jmp fcn.010023d7
Function at 0x10024bc
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10012e8
call fcn.01002714
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x100250f
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x100250f
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1002527
cmp ecx, 0x20b
je 0x1002514
mov dword [ebp - 0x1c], ebx
jmp 0x100253b
cmp dword [eax + 0x84], 0xe
jbe 0x100250f
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x1002535
cmp dword [eax + 0x74], 0xe
jbe 0x100250f
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x1003350], edi
mov dword [0x1003354], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003348]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003344]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003358], eax
call fcn.0100270a
cmp dword [0x1003010], ebx
jne 0x1002598
push fcn.0100270a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010026f3
push 0x1001118
push 0x1001114
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003340]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100333c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1001110
push 0x1001108
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x1002623
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1002603
cmp cl, 0x22
jne 0x10025f4
cmp byte [eax], 0x22
jne 0x100260c
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1002617
cmp cl, 0x20
jbe 0x1002608
test byte [ebp - 0x54], 1
je 0x100262e
movzx ecx, word [ebp - 0x50]
jmp 0x1002631
cmp byte [eax], 0x20
jbe 0x100260c
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1002623
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.010021d9
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100264f
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x100268b
mov eax, esi
jmp 0x100269f
call fcn.0100274f
ret
Function at 0x4011f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40b3a4], 0
push esi
jne 0x401227
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x401201
mov dword [ecx*4 + 0x40b3a0], eax
inc ecx
cmp ecx, 0x100
jl 0x4011fc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x401258
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40b3a0]
xor eax, esi
inc ecx
dec edx
jne 0x40123a
pop edi
not eax
pop esi
ret 0xc
Function at 0x402ae5
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x430c50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b79
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402b36
cmp dword [ebp + 0x10], ebx
jne 0x402b6d
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ae5
test eax, eax
jne 0x402b48
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402b1d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00407d5b
cmp eax, ebx
je 0x402b80
push ebx
push dword [0x430c50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b79
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x430c50], ebx
jne 0x402b76
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b76
jmp 0x402b79
Function at 0x40546f
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x80c], 0
jne 0x4054c5
inc dword [0x430394]
mov eax, dword [0x430394]
or dword [esi + 0x810], 2
push 0x40
push 0x1000
push 0xa
push 0
mov dword [esi + 0x1498], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x80c], eax
mov byte [eax], 0xb8
inc eax
mov ecx, 0x407fa3
mov dword [eax], esi
add eax, 4
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x80c]
pop esi
ret

Function at 0x40562b
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x430390
push 0x40
push 4
push 0x4303a0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov byte [0x4303a0], 0xc2
mov dword [0x430390], eax
mov dword [0x430398], eax
mov dword [0x4303a8], eax
mov dword [0x43039c], eax
mov dword [0x430394], eax
mov byte [0x4303a2], al
ret
Function at 0x4056eb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x430bd0]
push edi
push 6
call fcn.00407d5b
xor ebx, ebx
cmp eax, ebx
je 0x405716
push 0x437000
call eax
movzx eax, ax
cdq
push edx
push eax
call fcn.00404643
jmp 0x405760
mov edi, 0x42d598
push ebx
push edi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [0x437000], 0x7830
call fcn.004079c0
cmp byte [0x42d598], bl
jne 0x405755
push ebx
push edi
push 0x409426
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.004079c0
push edi
push 0x437000
call sub.KERNEL32.dll_lstrcatA
call fcn.00405910
mov eax, dword [0x430bd8]
mov ebp, 0x436400
and eax, 0x20
push ebp
mov dword [0x430c20], eax
mov dword [0x430c3c], 0x10000
call fcn.0040769f
test eax, eax
jne 0x405810
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x405810
mov edx, dword [esi + 0x44]
mov eax, dword [0x430bf8]
mov edi, 0x42fb40
push ebx
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.004079c0
mov al, byte [0x42fb40]
cmp al, bl
je 0x405810
cmp al, 0x22
jne 0x4057cf
mov edi, 0x42fb41
push 0x22
push edi
call fcn.004075e9
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x405803
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405803
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4057fd
test al, 0x10
jne 0x405803
push edi
call fcn.00407605
push edi
call fcn.004075be
push eax
push ebp
call fcn.00407a37
push ebp
call fcn.0040769f
test eax, eax
jne 0x405826
push dword [esi + 0x104]
push ebp
call fcn.00407a59
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x430bc0]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x430388], eax
call fcn.0040562b
push ebx
call fcn.004012fc
test eax, eax
je 0x405859
push 2
pop eax
jmp 0x40590b
call fcn.00405910
cmp dword [0x430c40], ebx
jne 0x4058e0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RichEd20
call esi
test eax, eax
jne 0x40587e
push str.RichEd32
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoA]
mov esi, 0x430340
mov ebp, str.RichEdit20A
push esi
push ebp
push ebx
call edi
test eax, eax
jne 0x4058ad
push esi
push str.RichEdit
push ebx
call edi
push esi
mov dword [0x430364], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x430380]
push ebx
add eax, 0x69
push 0x4059d2
movzx eax, ax
push ebx
push eax
push dword [0x430bc0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.00404386
mov eax, esi
jmp 0x40590b
push ebx
call fcn.00406f3b
test eax, eax
je 0x405902
cmp dword [0x43036c], ebx
jne 0x405851
push 2
call fcn.004012fc
jmp 0x405851
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40732b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42f5a0], 0x44
push eax
xor eax, eax
push 0x42f5a0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407366
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4073f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040769f
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x407424
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x430c28], eax
jmp 0x4075b8
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x407442
test eax, eax
je 0x407563
test byte [ebp + 0xc], 2
je 0x407563
mov esi, 0x42e5a0
push edi
push esi
call fcn.00407a37
test ebx, ebx
je 0x40745f
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x407465
push edi
call fcn.00407605
cmp byte [edi], 0
jne 0x407473
cmp byte [0x42e5a0], 0x5c
jne 0x40747e
push 0x40b010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x407559
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004075e9
cmp byte [eax], 0
je 0x4074c4
cmp byte [ebp - 0x18], 0
je 0x4074c4
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4074da
mov al, byte [esi + 1]
test al, al
je 0x407538
cmp al, 0x2e
jne 0x4074da
cmp byte [esi + 2], 0
je 0x407538
push esi
push ebx
call fcn.00407a37
test byte [ebp - 0x148], 0x10
je 0x4074ff
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x407538
push dword [ebp + 0xc]
push edi
call fcn.004073f0
jmp 0x407538
push edi
call fcn.00407791
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407530
test byte [ebp + 0xc], 4
je 0x407528
push edi
push 0xfffffffffffffff1
call fcn.00406e69
push 0
push edi
call fcn.00407827
jmp 0x407538
inc dword [0x430c28]
jmp 0x407538
push edi
push 0xfffffffffffffff2
call fcn.00406e69
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4074a2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x407563
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4075b8
cmp dword [ebp - 8], esi
jne 0x407578
inc dword [0x430c28]
jmp 0x4075b8
push edi
call fcn.00407d34
test eax, eax
je 0x4075b8
push edi
call fcn.004075be
push edi
call fcn.00407791
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4075b0
test byte [ebp + 0xc], 4
je 0x407570
push edi
push 0xfffffffffffffff1
call fcn.00406e69
push esi
push edi
call fcn.00407827
jmp 0x4075b8
push edi
push 0xffffffffffffffe5
call fcn.00406e69
pop edi
pop esi
leave
ret 8
Function at 0x40769f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42e9a0
push esi
call fcn.00407a37
push esi
call fcn.00407652
mov edi, eax
test edi, edi
jne 0x4076c0
xor eax, eax
jmp 0x407712
push edi
call fcn.00407c9b
test byte [0x430bd8], 0x80
je 0x4076d9
mov al, byte [edi]
test al, al
je 0x4076bc
cmp al, 0x5c
je 0x4076bc
sub edi, esi
jmp 0x4076f1
call fcn.00407d34
test eax, eax
je 0x4076eb
test byte [eax], 0x10
je 0x4076bc
push esi
call fcn.00407605
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4076dd
call fcn.004075be
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x407791
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4077ad
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4077b0
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4077df
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x407823
test edi, edi
jne 0x4077ea
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40781d
Function at 0x407827
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00407d5b
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40784b
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x407984
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42f728], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42f728
je 0x40788f
push 1
push 0
push esi
call fcn.004077b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40798a
cmp eax, edi
jg 0x40798a
mov esi, 0x42f1a0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40798a
cmp eax, edi
jg 0x40798a
push esi
push ebp
push str._s_s_r_n
push 0x42eda0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x430bd0]
add esp, 0x10
push dword [eax + 0x114]
push esi
call fcn.00407a59
push 4
push 0xc0000000
push esi
call fcn.004077b0
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x407984
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40797d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40797d
cmp edi, dword [esp + 0x18]
jne 0x40797d
push str._Rename__r_n
push esi
call fcn.00407717
test eax, eax
jne 0x407991
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00407a37
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42eda0
push eax
call fcn.00407763
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x430c30]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40b380
push eax
call fcn.00407717
test eax, eax
je 0x407948
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4079b8
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4079ad
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40794a
Function at 0x4079c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407a31
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407a20
cmp dword [ebp + 0x14], 1
je 0x407a22
cmp dword [ebp + 0x14], 2
je 0x407a22
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x410cfc
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x410d0d
lcall 0x5de5, 0x8b10c483
jmp loc.0080d968

Function at 0x410d0d
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0x410d0d
lcall 0x5de5, 0x8b10c483
jmp loc.0080d968
Function at 0x86e370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x86e38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x897074
push ecx
mov edi, eax
call fcn.00882198
mov esi, eax
add esp, 8
test esi, esi
jne 0x86e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0088202e
push esi
call fcn.00881fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret