joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov word [ebp - 4], 0x1eca
mov ax, word [ebp - 4]
and ax, 0xeeca
mov word [ebp - 4], ax
mov cx, word [ebp - 4]
sar cx, 3
mov word [ebp - 4], cx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
mov ax, word [ebp - 4]
add ax, 0x2fbb
mov word [ebp - 4], ax
mov cx, word [ebp - 4]
and cx, 0x8132
mov word [ebp - 4], cx
cmp dword [ebp - 8], 0xffffffff
jne 0x10001066
xor eax, eax
jmp 0x100010b9
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000109d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dx, word [ebp - 4]
imul dx, dx, 0xf671
mov word [ebp - 4], dx
xor eax, eax
jmp 0x100010b9
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dx, word [ebp - 4]
or dx, 0xce69
mov word [ebp - 4], dx
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10001fb3
Capabilities:
Terminate process

Disassembly:
call fcn.10001fc8
push esi
mov edi, eax
call fcn.10002879
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret

Function at 0x10001fc4
Capabilities:
Terminate process

Disassembly:
call fcn.10001fc8
push esi
mov edi, eax
call fcn.10002879
add esp, 0xc
mov eax, edi
pop edi
pop esi
ret

Function at 0x10003aef
Capabilities:
Query environment variable

Disassembly:
xchg esp, eax
add byte [eax], 0x10
test eax, eax
je 0x10003ae6
cmp dword [ebp - 0x88], 2
jne 0x10003ae6
cmp dword [ebp - 0x94], 5
jb 0x10003ae6
push 1
pop eax
jmp 0x10003be8
lea eax, [ebp - 0x122c]
push 0x1090
add byte [eax], al
push eax
push str.__MSVCRT_HEAP_SELECT
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x10003bd5
xor ebx, ebx
lea ecx, [ebp - 0x122c]
cmp byte [ebp - 0x122c], bl
je 0x10003b28
mov al, byte [ecx]
cmp al, 0x61
jl 0x10003b23
cmp al, 0x7a
jg 0x10003b23
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x10003b15
lea eax, [ebp - 0x122c]
push 0x16
push eax
push str.__GLOBAL_HEAP_SELECTED
call fcn.10006470
add esp, 0xc
test eax, eax
jne 0x10003b4a
lea eax, [ebp - 0x122c]
jmp 0x10003b93
lea eax, [ebp - 0x19c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x19c], bl
lea ecx, [ebp - 0x19c]
je 0x10003b7e
mov al, byte [ecx]
cmp al, 0x61
jl 0x10003b79
cmp al, 0x7a
jg 0x10003b79
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x10003b6b
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x122c]
push eax
call fcn.100063f0
pop ecx
pop ecx
cmp eax, ebx
je 0x10003bd5
push 0x2c
push eax
call fcn.10006330
pop ecx
cmp eax, ebx
pop ecx
je 0x10003bd5
inc eax
mov ecx, eax
cmp byte [eax], bl
je 0x10003bba
cmp byte [ecx], 0x3b
jne 0x10003bb5
mov byte [ecx], bl
jmp 0x10003bb6
inc ecx
cmp byte [ecx], bl
jne 0x10003bac
push 0xa
push ebx
push eax
call fcn.100060f5
add esp, 0xc
cmp eax, 2
je 0x10003be8
cmp eax, 3
je 0x10003be8
cmp eax, 1
je 0x10003be8
lea eax, [ebp - 4]
push eax
call fcn.10003a76
cmp byte [ebp - 4], 6
pop ecx
sbb eax, eax
add eax, 3
pop ebx
leave
ret
Function at 0x402eb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a1ec]
jne 0x402eba
repz ret
jmp fcn.00405817

Function at 0x40c64c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a1ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406daa
and dword [ebp - 0x14], 0
cmp dword [0x41c2e8], 0
mov dword [ebp - 0x18], eax
jne 0x40c6ff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c7a7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c7a7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41c2e8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41c2ec], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41c2f0], eax
call edi
push eax
call esi
mov dword [0x41c2f8], eax
test eax, eax
je 0x40c6ff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41c2f4], eax
mov eax, dword [0x41c2f4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c758
cmp dword [0x41c2f8], ecx
je 0x40c758
push eax
call esi
push dword [0x41c2f8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c758
test ebx, ebx
je 0x40c758
call edi
test eax, eax
je 0x40c74f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c74f
test byte [ebp - 8], 1
jne 0x40c758
or dword [ebp + 0x10], 0x200000
jmp 0x40c78b
mov eax, dword [0x41c2ec]
cmp eax, dword [ebp - 0x18]
je 0x40c78b
push eax
call esi
test eax, eax
je 0x40c78b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c78b
mov eax, dword [0x41c2f0]
cmp eax, dword [ebp - 0x18]
je 0x40c78b
push eax
call esi
test eax, eax
je 0x40c78b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41c2e8]
call esi
test eax, eax
je 0x40c7a7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c7a9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402eb0
leave
ret

Function at 0x40d803
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x41a1ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push edi
mov edi, dword [0x41c740]
cmp dword [ebp + 8], esi
jle 0x40d850
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp loc.004443ee
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402eb0
leave
ret 4
Function at 0x401d20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d78
cmp byte [esi + ebx - 1], 0xa
je 0x401d4c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030fc], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x401fe0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0x403c
call fcn.00401058
sub esp, eax
lea esi, [ebp - 0x400c]
lea edi, [ebp - 0x4010]
mov eax, dword [esp + eax]
mov dword [ebp - 0x4014], edx
lea edx, [ebp - 0x4014]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], 0x2000
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0x400
call dword [sym.imp.kernel32.dll_FormatMessageW]
mov ebx, eax
mov eax, dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 0x1c
mov dword [esp], 0xfffffff5
mov dword [ebp - 0x4018], eax
call eax
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x402090
mov edx, dword [ebp - 0x4010]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [ebp - 0x4024], eax
mov dword [ebp - 0x402c], ecx
call ecx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [ebp - 0x4028], eax
call eax
sub esp, 0x20
mov dword [ebp - 0x401c], eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x4024]
test eax, eax
mov dword [ebp - 0x4020], eax
je 0x402085
mov ecx, dword [ebp - 0x402c]
call ecx
mov edx, dword [ebp - 0x401c]
mov ecx, dword [ebp - 0x4020]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov ebx, dword [ebp - 0x4028]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov ebx, dword [ebp - 0x4018]
sub esp, 0x20
mov dword [esp], 0xfffffff5
call ebx
mov edx, dword [ebp - 0x401c]
sub esp, 4
mov dword [esp + 0xc], edi
mov edi, dword [ebp - 0x4020]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp + 0x10], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x40207f
Function at 0x402c40
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x401150
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x140]
test edi, edi
jne 0x401172
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
lea eax, [esp + 0x34]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stat]
mov esi, dword [sym.imp.MSVCRT.dll_fopen]
lea eax, [esp + 0x3c]
push 0x403510
push eax
call esi
mov ecx, dword [esp + 0x14c]
mov ebx, eax
push 0
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll_fseek]
mov edx, dword [esp + 0x160]
push 0x40350c
push edx
call esi
push edi
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4011e5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
push ebx
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
push 1
push edi
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x28
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x401220
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401272
push 5
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x54
ret
Function at 0x40287f
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
call dword [sym.imp.MSVCR71.dll__tempnam]
mov ecx, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_freopen]
add ecx, 0x40
mov edi, 0x40c9d4
push ecx
push edi
push eax
mov dword [ebp - 4], eax
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
push edi
push dword [ebp - 4]
call esi
push 0x40e740
call fcn.004027a9
mov esi, eax
add esp, 0x24
cmp esi, ebx
jne 0x402903
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x8c]
push str.Cant_load_Python_for_pre_install_script___d_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x8c]
push eax
call fcn.004025ce
add esp, 0x10
or eax, 0xffffffff
jmp 0x402a05
push dword [ebp + 8]
push esi
call fcn.00402a0a
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov edi, dword [sym.imp.MSVCR71.dll_fflush]
add eax, 0x40
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
mov esi, dword [sym.imp.MSVCR71.dll_fclose]
add eax, 0x40
inc eax
push eax
call esi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call edi
mov eax, dword [sym.imp.MSVCR71.dll__iob]
add eax, 0x20
push eax
call esi
add esp, 0x10
cmp dword [ebp - 0xc], ebx
je 0x4029f8
push str.Running_the_pre_installation_script_failed_r_n
call sub.MSVCR71.dll_strlen
mov dword [esp], 0x40c970
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.MSVCR71.dll_fopen]
push 2
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_fseek]
push eax
mov dword [ebp + 8], eax
call ebx
push dword [ebp + 8]
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 8], eax
call ebx
mov eax, dword [ebp - 8]
lea eax, [eax + edi + 1]
push eax
call dword [sym.imp.MSVCR71.dll_malloc]
mov ebx, eax
add esp, 0x28
test ebx, ebx
je 0x4029ed
push str.Running_the_pre_installation_script_failed_r_n
push ebx
call sub.MSVCR71.dll_strcpy
push dword [ebp + 8]
lea eax, [ebx + edi]
push dword [ebp - 8]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
push dword [ebp + 8]
add eax, ebx
and byte [eax + edi], 0
call esi
push ebx
call fcn.004025ce
push ebx
call dword [sym.imp.MSVCR71.dll_free]
add esp, 0x24
jmp 0x4029f8
push str.Out_of_memory_
call fcn.004025ce
pop ecx
push dword [ebp - 4]
call dword [sym.imp.MSVCR71.dll_remove]
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
push edi
call dword [sym.imp.WS2_32.dll_htonl]
cmp byte [ebp + 0xc], 0
mov ebx, eax
jne 0x44ffea
mov eax, dword [ebp + 8]
test eax, eax
je 0x44ffb2
cmp eax, 1
je 0x44ffb2
mov edi, dword [ebp + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_htons]
movzx eax, word [edi + 0xe]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 0xc]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 0xa]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 8]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 6]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 4]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi + 2]
push eax
call esi
movzx eax, ax
push eax
movzx eax, word [edi]
push eax
call esi
movzx eax, ax
push eax
push 0x4bc998
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.00492202
add esp, 0x2c
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, bl
push eax
mov eax, ebx
shr eax, 8
and eax, 0xff
push eax
mov eax, ebx
shr ebx, 0x18
shr eax, 0x10
and eax, 0xff
push eax
push ebx
push 0x4b00ec
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.00492202
add esp, 0x1c
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
push dword [ebp + 0x1c]
push esi
push ebx
push dword [ebp + 8]
call fcn.0044e0a0
add esp, 0x14
test al, al
je 0x45000b
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret
movzx eax, bl
push eax
mov eax, ebx
shr eax, 8
and eax, 0xff
push eax
mov eax, ebx
shr eax, 0x10
and eax, 0xff
push eax
mov eax, ebx
shr eax, 0x18
push eax
push 0x4b00ec
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
call fcn.00492202
add esp, 0x1c
push 0x4e5678
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e4ccc]
test eax, eax
je 0x450064
cmp dword [eax + 0x10c], ebx
je 0x4500b5
mov eax, dword [eax + 0x120]
test eax, eax
jne 0x450052
push 0x124
call fcn.0048fb2f
mov ecx, eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 0x108], edi
mov dword [ecx + 0x10c], ebx
test esi, esi
je 0x450094
movdqu xmm0, xmmword [esi]
movdqu xmmword [ecx + 0x110], xmm0
mov eax, dword [0x4e4ccc]
push ecx
push 0
mov dword [ecx + 0x120], eax
push 0x44e200
mov dword [0x4e4ccc], ecx
call fcn.00493b6c
add esp, 0xc
push 0x4e5678
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x40642b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40644f
xor eax, eax
test eax, eax
je 0x406462
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406462
xor ecx, ecx
jmp 0x406465
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40654c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a65c4], 0
push esi
jne 0x406583
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 0x40655d
mov dword [ecx*4 + 0x7a65c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406558
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065b4
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 + 0x7a65c0]
xor eax, esi
inc ecx
dec edx
jne 0x406596
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x52252ab9
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1a3751db
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10037ea2
Capabilities:
Delete directory

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c582a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1012f058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esi], 0x100e3ec0
cmp dword [esi + 0x24], edi
je 0x10037f67
lea eax, [esi + 0x1e4]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.kernel32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10037f0d
lea ecx, [ebp - 0x18]
call fcn.100020c8
call dword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [ebp - 0x14], eax
je 0x10037f2a
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f78
call dword [eax + 4]
cmp byte [esi + 0x20c], 0
je 0x10037f45
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f79
call dword [eax + 4]
cmp dword [esi + 0x208], edi
je 0x10037f5f
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f7a
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.10001ee8
mov eax, dword [esi + 0x218]
cmp eax, 0xffffffff
je 0x10037f80
or dword [esi + 0x218], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esi + 0x21c], edi
je 0x10037fb6
lea edi, [esi + 0x220]
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10037fab
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a7030
call dword [eax + 4]
xor eax, eax
mov word [edi], ax
and dword [esi + 0x21c], eax
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x10037fd9
push ecx
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.1004356a
and dword [edi + 8], 0
lea ecx, [ebp - 0x1c]
call fcn.10001ee8
mov edi, dword [esi + 8]
and dword [esi + 8], 0
test edi, edi
je 0x10037ff2
mov ecx, edi
call fcn.1004356a
push edi
call fcn.1004356a
pop ecx
mov eax, dword [esi + 0x218]
cmp eax, 0xffffffff
je 0x1003800b
or dword [esi + 0x218], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esi + 0x1e4]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0x1e0]
test ecx, ecx
je 0x1003802e
and dword [esi + 0x1e0], 0
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x2c]
call fcn.1004356a
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003804b
and dword [esi + 0xc], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [esi + 8]
test esi, esi
je 0x10038060
mov ecx, esi
call fcn.1004356a
push esi
call fcn.1004356a
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret