joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e246
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jne 0x40e262
xor eax, eax
inc eax
cmp dword [0x412174], eax
jne 0x40e3a8
cmp dword [0x413758], ebx
je 0x40e3a5
test byte [ebp + 8], 1
push esi
push edi
mov edi, 0x9b
lea esi, [edi + 0x38]
je 0x40e2f2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 1
call fcn.0040e0b1
add esp, 0xc
test eax, eax
je 0x40e2f2
cmp dword [ebp + 0xc], ebx
je 0x40e2f2
push 2
push 0x40000000
call fcn.0040dce0
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x40e2f2
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e2e9
cmp dword [ebp + 0xc], 0
je 0x40e2e9
push edi
push esi
push dword [ebp + 0xc]
push ebx
push ebx
call fcn.0040254d
add esp, 0x14
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e2e9
and dword [0x413758], 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [ebp + 8], 2
je 0x40e3a3
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 2
call fcn.0040e0b1
add esp, 0xc
test eax, eax
je 0x40e3a3
cmp dword [ebp + 0xc], 0
je 0x40e3a3
push edi
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp - 4]
call fcn.0040254d
add esp, 0x14
push dword [ebp + 0xc]
mov edi, 0xb7
push dword [ebp - 4]
lea esi, [edi - 0xe]
push edi
push esi
push 8
push 0x4110d4
mov ebx, 0x412990
push ebx
call fcn.0040254d
add esp, 0x14
push eax
push edi
push esi
push 0x21
push 0x4110b0
mov esi, 0x412390
push esi
call fcn.0040254d
add esp, 0x14
push eax
push 0x80000001
call fcn.0040e164
add esp, 0x14
test eax, eax
je 0x40e389
and dword [0x413758], 0
mov edi, 0x100
push edi
push 0
push esi
call fcn.0040ee85
push edi
push 0
push ebx
call fcn.0040ee85
add esp, 0x18
pop edi
pop esi
xor eax, eax
inc eax
pop ebx
leave
ret
Function at 0x40e45d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x20119
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x20], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e5bb
mov eax, dword [ebp + 0x10]
push esi
push edi
xor esi, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e491
sub eax, edi
mov edi, eax
mov dword [ebp - 4], ebx
cmp edi, 0x1c
jle 0x40e4a7
push 0x1c
pop edi
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x40]
push eax
call fcn.0040ee63
lea eax, [ebp + edi - 0x40]
push 0xa
push eax
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], eax
call fcn.0040f248
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x40e5b0
add esi, dword [ebp - 8]
inc dword [ebp - 4]
push 0xa
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
call fcn.0040f248
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x40e4eb
cmp esi, ebx
jle 0x40e5b0
push esi
mov dword [ebp - 0x1c], esi
call fcn.0040dc3c
mov eax, dword [0x41375c]
pop ecx
cmp eax, ebx
je 0x40e5b0
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
push 0xa
push dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
push dword [ebp - 4]
call fcn.0040f248
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x40e57b
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x40e57b
add dword [ebp - 8], eax
sub esi, eax
inc dword [ebp - 4]
cmp esi, ebx
jg 0x40e53c
cmp esi, ebx
jne 0x40e5b0
mov eax, dword [0x41375c]
push 0x9b
push 0xd3
push dword [ebp - 0x1c]
push eax
push eax
call fcn.0040254d
push dword [ebp - 0x1c]
push dword [0x41375c]
call fcn.0040e3c5
add esp, 0x1c
mov dword [ebp - 0x20], 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 0x20]
pop ebx
leave
ret
Function at 0x40e5c1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call fcn.0040ddd3
push 3
push 0x80000000
call fcn.0040dce0
mov esi, eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x40e648
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x40e641
push eax
call fcn.0040dc3c
mov eax, dword [0x41375c]
pop ecx
test eax, eax
je 0x40e641
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e641
mov eax, dword [0x41375c]
push 0x9b
push 0xd3
push dword [ebp - 4]
push eax
push eax
call fcn.0040254d
push dword [ebp - 4]
push dword [0x41375c]
call fcn.0040e3c5
add esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xb7
push edi
lea esi, [edi - 0xe]
push esi
push 8
push 0x4110d4
mov ebx, 0x412990
push ebx
call fcn.0040254d
add esp, 0x14
push eax
push edi
push esi
push 0x21
push 0x4110b0
mov edi, 0x412390
push edi
call fcn.0040254d
add esp, 0x14
push eax
push 0x80000001
call fcn.0040e45d
add esi, 0x57
push esi
push 0
push edi
call fcn.0040ee85
push esi
push 0
push ebx
call fcn.0040ee85
add esp, 0x24
call fcn.0040de37
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x40f370
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp esi, edi
jne 0x40f396
xor eax, eax
jmp 0x40f47f
push 0x10
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040ee85
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
push 2
mov word [ebp - 0x16], ax
pop eax
push edi
xor edi, edi
inc edi
push edi
push eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], esi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f3dd
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, esi
jmp 0x40f47f
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp + 8]
push eax
push 0x8004667e
push esi
mov dword [ebp + 8], edi
call ebx
cmp eax, 0xffffffff
jne 0x40f405
or edi, eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x40f47e
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], edi
call dword [sym.imp.WS2_32.dll_connect]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x220]
push eax
xor edi, edi
push edi
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40f47c
lea eax, [ebp - 0x11c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x40f3fa
lea eax, [ebp + 8]
push eax
push 0x8004667e
push esi
mov dword [ebp + 8], edi
call ebx
push dword [ebp + 0x10]
push esi
call fcn.0040f2c8
pop ecx
pop ecx
mov eax, esi
jmp 0x40f47e
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x40f499
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
push edi
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
push ebx
jmp 0x40f4ce
cmp eax, 0x2746
je 0x40f4d7
add edi, eax
cmp edi, dword [ebp + 0x10]
jge 0x40f4d7
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push dword [ebp + 8]
call esi
test eax, eax
jg 0x40f4b3
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0xf2a7883
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xa4e3a4d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x406953
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 2
mov edi, eax
call fcn.00406aca
xor esi, esi
cmp edi, esi
mov dword [ebp - 8], esi
je 0x4069c8
push ebx
lea eax, [edi - 0x834]
xor ebx, ebx
cmp eax, 0x383
mov dword [ebp - 4], 0x1300
ja 0x40699f
push 2
push esi
push str.netmsg.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, esi
je 0x40699f
mov dword [ebp - 4], 0x1b00
push esi
push esi
push esi
push esi
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x4069bc
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], 1
cmp ebx, esi
je 0x4069c7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
push 0x40a504
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
cmp edi, esi
je 0x4069f8
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
push esi
push dword [ebp + 8]
push esi
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
leave
ret 4
Function at 0x402ed3
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 [0x454070]
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 0x402f4e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f55
cmp dword [ebp + 0x10], ebx
jne 0x402f42
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ed3
test eax, eax
jne 0x402f55
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f15
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406476
cmp eax, ebx
je 0x402f7a
push ebx
push dword [0x454070]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f4e
cmp dword [0x454070], ebx
jne 0x402f4b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f4b
jmp 0x402f4e
Function at 0x4030c2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x48b000
push 0x2000
add eax, 0x3e8
push esi
push ebx
mov dword [0x453fcc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00405c56
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a668], edi
jne 0x40311c
mov eax, 0x40a754
jmp 0x4032f9
push esi
mov esi, 0x483000
push esi
call fcn.00405f81
push esi
call fcn.00405ab1
push eax
push 0x48d000
call fcn.00405f81
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x432fd0], eax
mov esi, eax
jle 0x403237
mov ebx, 0x42afd0
mov eax, dword [0x453fd4]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x403170
mov edi, eax
push edi
push ebx
call fcn.00403521
test eax, eax
je 0x4032a1
cmp dword [0x453fd4], 0
jne 0x403202
push 0x1c
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00405c11
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x403210
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x403210
cmp dword [ebp - 0x18], 0x74736e49
jne 0x403210
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x403210
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x403210
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x41efc8]
and eax, 2
or dword [0x454060], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x453fd4], ecx
jg 0x40329a
test byte [ebp + 8], 8
jne 0x4031f4
test byte [ebp + 8], 4
jne 0x403235
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403210
mov edi, esi
jmp 0x403210
test byte [ebp + 8], 2
jne 0x403210
push 0
call fcn.00403067
pop ecx
cmp esi, dword [0x432fd0]
jge 0x403225
push edi
push ebx
push dword [ebp - 8]
call fcn.004064ec
mov dword [ebp - 8], eax
add dword [0x41efc8], edi
sub esi, edi
test esi, esi
jg 0x403155
xor ebx, ebx
push 1
call fcn.00403067
cmp dword [0x453fd4], ebx
pop ecx
je 0x40329a
cmp dword [ebp - 4], ebx
je 0x40326e
push dword [0x41efc8]
call fcn.00403553
lea eax, [ebp + 8]
push 4
push eax
call fcn.00403521
test eax, eax
je 0x40329a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40329a
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x453fd4]
add eax, 0x1c
push eax
call fcn.00403553
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403300
cmp eax, dword [ebp - 0x14]
je 0x4032ab
mov eax, 0x40a688
jmp 0x4032f9
push 1
call fcn.00403067
pop ecx
jmp 0x40329a
test byte [ebp - 0x28], 1
mov dword [0x453fd0], esi
mov eax, dword [esi]
mov dword [0x453fd8], eax
je 0x4032c4
inc dword [0x453fdc]
lea edi, [esi + 0x3c]
push 8
mov eax, edi
pop ecx
add dword [eax], esi
dec ecx
sub eax, 8
test ecx, ecx
ja 0x4032cc
push 1
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esi, 4
push 0x40
push esi
push 0x453fe0
mov dword [edi], eax
call fcn.00405c11
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40575b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x449810], 0x44
push eax
xor eax, eax
push 0x449810
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 0x405796
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405b4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x447010
push esi
call fcn.00405f81
push esi
call fcn.00405afe
mov edi, eax
test edi, edi
jne 0x405b6e
xor eax, eax
jmp 0x405bc0
push edi
call fcn.00406209
test byte [0x453fd8], 0x80
je 0x405b87
mov al, byte [edi]
test al, al
je 0x405b6a
cmp al, 0x5c
je 0x405b6a
sub edi, esi
push esi
call fcn.00405f97
cmp eax, edi
push esi
jle 0x405baa
call fcn.0040644f
test eax, eax
je 0x405ba2
test byte [eax], 0x10
je 0x405b6a
push esi
call fcn.00405ab1
jmp 0x405b89
call fcn.00405a6a
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 0x405c37
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 0x405c53
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c56
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 0x405c85
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop 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 0x405cca
mov eax, edi
dec edi
test eax, eax
jne 0x405c90
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cc4
Function at 0x405cce
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.00406476
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cf2
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405e2b
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x449998], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x449998
je 0x405d36
push 1
push 0
push esi
call fcn.00405c56
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e31
cmp eax, edi
jg 0x405e31
mov esi, 0x449410
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e31
cmp eax, edi
jg 0x405e31
push esi
push ebp
push str._s_s_r_n
push 0x449010
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x453fd0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405fb5
push 4
push 0xc0000000
push esi
call fcn.00405c56
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405e2b
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 0x405e24
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 0x405e24
cmp edi, dword [esp + 0x18]
jne 0x405e24
push str._Rename__r_n
push esi
call fcn.00405bc5
test eax, eax
jne 0x405e38
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f81
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x449010
push eax
call fcn.00405c11
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 [0x454050]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad0
push eax
call fcn.00405bc5
test eax, eax
je 0x405def
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e5f
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e54
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405df1
Function at 0x405e67
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 0x405ed8
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
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 0x405ec7
cmp dword [ebp + 0x14], 1
je 0x405ec9
cmp dword [ebp + 0x14], 2
je 0x405ec9
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4062a2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4062c7
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x4062be
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40633a
cmp dword [0x44b740], ebx
je 0x40633a
cmp byte [0x44b340], bl
je 0x406306
cmp dword [0x40a8a0], 0xffffffff
jne 0x40630f
push 4
push 0x40000000
push 0x44b340
call fcn.00405c56
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40633a
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40633a
push esi
mov esi, 0x44f760
push 0x40aae8
push esi
call fcn.00405fa4
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f97
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x449d9c], esi
push edi
jne 0x406526
mov ecx, 0x449d98
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406502
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x44a198
jl 0x4064fd
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40655b
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x449d98]
xor eax, esi
inc ecx
dec edx
jne 0x40653e
pop edi
pop esi
not eax
ret 0xc
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x45b516cb
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x36d96fc5
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408e54
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6f8c2e69
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x30257a5e
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219