joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406a26
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 0x406a4a
xor eax, eax
test eax, eax
je 0x406a5d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a5d
xor ecx, ecx
jmp 0x406a60
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 0x406b83
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406bba
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 0x406b94
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b8f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406beb
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 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc
Function at 0x401076
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
jne 0x4010a5
xor eax, eax
jmp 0x4010c3
push ebx
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, edi
jne 0x4010c7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
jne 0x4010eb
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
mov eax, edi
jmp 0x4010c2
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x401105
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x401105
mov esi, dword [eax + 0x34]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, esi
jmp 0x4010d9

Function at 0x401124
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x104
push esi
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401148
cmp eax, esi
pop esi
jae 0x401148
pop ebp
jmp fcn.00401361
push 1
call dword [sym.imp.MSVCR90.dll_exit]
int3
Function at 0x4017b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4017be
repz ret
jmp fcn.00401b3e
Function at 0x41599a
Capabilities:
Encode data using xor

Disassembly:
inc esi
or eax, ecx
xor ch, cl
out 0x70, eax
mov cs, word [esi - 0x6112d77e]
aam 0x90
push ecx
stc
mov cl, 0x82
in al, 0x56
pop edi
cmp bl, byte [eax + 0x31]
cmp ah, byte [edi + 0x1f83098f]
xor ebp, dword [esi - 0x1a]
or eax, 0xb508c186
cmp ah, byte [esi - 0x1ebf4293]
movsb byte es:[edi], byte [esi]
add eax, 0x17c186fc
dec ecx
rcl dword [edi], 0x49
sub dword [edi], ebp
scasd eax, dword es:[edi]
cmc
dec esi
dec edx
xor ah, byte [edx]
jbe 0x4159cb
mov bl, byte [esi + 0x2b989611]
mov esi, 0xd9972078
js 0x415a01
xchg edi, eax
fstp dword [0x4bc9f478]
ror byte [eax - 0x52], 0x2e
sar ch, cl
add eax, eax
push 0x41
movsw word es:[edi], word [esi]
not dword [esi + 0x2a4f1c5e]
cmp dword [ecx + 0x5d], edi
lahf
xchg esi, eax
xchg edi, eax
in eax, 0x23
int1
dec ebp
imul ebx, dword [ecx], 5
cmc
xlatb
jle 0x415a6c
out 0x62, eax
ror dword [esi - 0x144921a1], 1
ret 0x8e09
lodsd eax, dword [esi]
mov ah, 0x6e
adc eax, 0x1d530908
jb 0x415a95
lcall 0x7bb7, 0xff29cea5
xchg byte [ecx], dl
invalid
jb 0x415a3d
scasb al, byte es:[edi]
dec dl
jae 0x415a3c
wait
push edi
movsb byte es:[edi], byte [esi]
int1
and ch, bh
out dx, eax
sbb byte [esi + 0x39adfd47], dl
test eax, 0xcc5e1145
cmp dword [ecx - 0x33a1eebb], ebp
jbe 0x415ad3
out dx, al
push es
into
int1
mov dword [ebx - 0x24], esp
inc esp
lea esp, es:[eax + edi*8 + 0x41]
call 0x51ba8a91
das
jns 0x415ae9
inc ecx
xchg ebx, eax
push ds
xor al, 0x53
mov cl, 0xda
jmp 0x415a3c
ja 0x415a7e
into
adc dword [edx + 0x3f03ab49], ecx
out 0x45, al
mov ebx, 0xe3208183
loopne 0x415a78
jbe 0x415b44
pop esp
not byte [ebx]
dec ecx
jmp 0x5633584b
xchg byte [esi + 0x16], ah
cmpsd dword [esi], dword es:[edi]
fidiv dword ds:[ecx - 0x3e]
sub al, 0x6f
fisubr word [esp + edx*4]
sar dword [ecx - 0x7efbf6b7], cl
invalid
Function at 0xd1c610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8c1000]
push edi
jmp 0xd1c62a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd1c631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd1c620
mov eax, 1
add ebx, ebx
jne 0xd1c643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd1c654
jne 0xd1c673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd1c673
dec eax
add ebx, ebx
jne 0xd1c660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xd1c638
add ebx, ebx
jne 0xd1c66f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xd1c6c5
xor ecx, ecx
sub eax, 3
jb 0xd1c68b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd1c6fa
sar eax, 1
mov ebp, eax
jmp 0xd1c696
add ebx, ebx
jne 0xd1c696
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd1c664
inc ecx
add ebx, ebx
jne 0xd1c6a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd1c664
add ebx, ebx
jne 0xd1c6b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd1c6a6
jne 0xd1c6c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd1c6a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd1c6e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd1c6d6
jmp 0xd1c626
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd1c6e4
add edi, ecx
jmp 0xd1c626
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd1c702
cmp byte [edi], 0x11
jne 0xd1c702
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xd1c707
lea edi, [esi + 0x915000]
mov eax, dword [edi]
or eax, eax
je 0xd1c77f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11555f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1155770]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd1c734
mov ecx, edi
jns 0xd1c763
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1155774]
or eax, eax
je 0xd1c779
mov dword [ebx], eax
add ebx, 4
jmp 0xd1c751
call dword [esi + 0x1155784]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xd1c7b0
cmp al, 0xef
ja 0xd1c7a3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xd1c785
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xd1c792
mov ebp, dword [esi + 0x1155778]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xd1c7e4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x100010d0
Capabilities:
Delete network filter via wfp api
Enumerate network filters via wfp api

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0
push 0
push 0xa
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.fwpuclnt.dll_FwpmEngineOpen0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
mov dword [esp + 0x1c], eax
lea ecx, [ecx]
mov esi, dword [eax + 0x10002080]
mov eax, dword [0x1000300c]
mov edi, dword [esp + 0xc]
test eax, eax
jne 0x10001153
push str.RtlZeroMemory
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1000300c], eax
test eax, eax
je 0x1000115c
push 0x30
lea ecx, [esp + 0x24]
push ecx
call eax
movdqu xmm0, xmmword [esi]
lea eax, [esp + 0x18]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x38], 1
push eax
push edi
movdqu xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 2
mov dword [esp + 0x54], 0xffffffff
call dword [sym.imp.fwpuclnt.dll_FwpmFilterCreateEnumHandle0]
mov ebx, eax
test ebx, ebx
jne 0x10001236
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
push 0xffffffffffffffff
push dword [esp + 0x24]
push dword [esp + 0x1c]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterEnum0]
mov ebx, eax
test ebx, ebx
jne 0x10001214
mov edi, dword [esp + 0x10]
test edi, edi
je 0x10001214
mov edx, dword [esp + 0x14]
test edx, edx
je 0x10001214
xor esi, esi
test edx, edx
je 0x10001209
mov eax, dword [edi + esi*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x100011e6
cmp dword [ecx], 0
jne 0x10001204
push dword [eax + 0x8c]
push dword [eax + 0x88]
push dword [esp + 0x14]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDeleteById0]
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
inc esi
cmp esi, edx
jb 0x100011d7
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmFreeMemory0]
push dword [esp + 0x18]
push dword [esp + 0x10]
call dword [sym.imp.fwpuclnt.dll_FwpmFilterDestroyEnumHandle0]
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, 8
jb 0x10001120
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10001245
push eax
call dword [sym.imp.fwpuclnt.dll_FwpmEngineClose0]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4032a0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret

Function at 0x49db00
Capabilities:
Authenticate hmac

Disassembly:
mov al, 0x10
pushfd
pushfd
push 0x9826650d
pushal
lea esp, [esp + 0x38]
call fcn.004fc934
push eax
adc al, al
pushal
push 0xbe5fcf35
jmp 0x4ddde4
pushfd
lea esp, [esp + 0x2c]
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 [0x449370]
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.00406447
cmp eax, ebx
je 0x402f7a
push ebx
push dword [0x449370]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f4e
cmp dword [0x449370], 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 0x403300
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x40331d
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x40332c
mov ebx, 0x41946c
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403341
mov ecx, dword [0x449318]
add ecx, eax
push ecx
call fcn.00403524
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004034f2
test eax, eax
je 0x4034e0
test byte [ebp + 0x17], 0x80
je 0x403486
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4153e0
mov dword [ebp - 0xc], eax
call fcn.00406533
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4034e8
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403391
mov esi, dword [ebp + 0x14]
mov edi, 0x41546c
push esi
push edi
call fcn.004034f2
test eax, eax
je 0x4034e0
sub dword [ebp + 0x14], esi
mov dword [0x4153f8], edi
mov dword [0x4153fc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4153e0
mov dword [0x415400], ebx
mov dword [0x415404], eax
call fcn.00406555
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x40347e
mov esi, dword [0x415400]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x449374], 1
mov edi, eax
je 0x403433
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403400
cmp dword [ebp + 0x14], 0
jne 0x403433
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00405229
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x403473
cmp dword [ebp + 0x10], eax
jne 0x40345c
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403482
cmp dword [ebp - 0x10], esi
jne 0x403482
add dword [ebp - 4], esi
jmp 0x403468
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x415400]
cmp dword [ebp - 0x14], 1
je 0x4034e8
jmp 0x4033b4
cmp dword [ebp + 0x14], eax
jg 0x403384
jmp 0x4034e8
push 0xfffffffffffffffc
jmp 0x4034e2
push 0xfffffffffffffffe
jmp 0x4034e2
test edi, edi
jne 0x4034cd
cmp dword [ebp + 0x14], 0
jle 0x4034e8
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40349b
mov esi, dword [ebp + 0x14]
mov edi, 0x41546c
push esi
push edi
call fcn.004034f2
test eax, eax
je 0x4034e0
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403482
cmp esi, dword [ebp + 0x10]
jne 0x403482
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
jmp 0x40348a
cmp dword [ebp + 0x14], esi
jge 0x4034d5
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004034f2
test eax, eax
jne 0x4034e5
push 0xfffffffffffffffd
pop eax
jmp 0x4034eb
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40572c
Capabilities:
Create process on windows

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x43d4b0
push esi
call fcn.00405f52
push esi
call fcn.00405acf
mov edi, eax
test edi, edi
jne 0x405b3f
xor eax, eax
jmp 0x405b91
push edi
call fcn.004061da
test byte [0x4492d8], 0x80
je 0x405b58
mov al, byte [edi]
test al, al
je 0x405b3b
cmp al, 0x5c
je 0x405b3b
sub edi, esi
push esi
call fcn.00405f68
cmp eax, edi
push esi
jle 0x405b7b
call fcn.00406420
test eax, eax
je 0x405b73
test byte [eax], 0x10
je 0x405b3b
push esi
call fcn.00405a82
jmp 0x405b5a
call fcn.00405a3b
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 0x405c08
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 0x405c24
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405c27
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 0x405c56
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 0x405c9b
mov eax, edi
dec edi
test eax, eax
jne 0x405c61
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c95
Function at 0x405c9f
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.00406447
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405cc3
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405dfc
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43fe38], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x43fe38
je 0x405d07
push 1
push 0
push esi
call fcn.00405c27
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e02
cmp eax, edi
jg 0x405e02
mov esi, 0x43f8b0
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e02
cmp eax, edi
jg 0x405e02
push esi
push ebp
push str._s_s_r_n
push 0x43f4b0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4492d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f86
push 4
push 0xc0000000
push esi
call fcn.00405c27
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405dfc
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 0x405df5
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 0x405df5
cmp edi, dword [esp + 0x18]
jne 0x405df5
push str._Rename__r_n
push esi
call fcn.00405b96
test eax, eax
jne 0x405e09
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405f52
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x43f4b0
push eax
call fcn.00405be2
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 [0x449350]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad0
push eax
call fcn.00405b96
test eax, eax
je 0x405dc0
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405e30
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e25
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405dc2
Function at 0x405e38
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 0x405ea9
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 0x405e98
cmp dword [ebp + 0x14], 1
je 0x405e9a
cmp dword [ebp + 0x14], 2
je 0x405e9a
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 0x406273
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406298
mov eax, dword [0x40a8a0]
cmp eax, 0xffffffff
je 0x40628f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a8a0], 0xffffffff
jmp 0x40630b
cmp dword [0x440a40], ebx
je 0x40630b
cmp byte [0x440640], bl
je 0x4062d7
cmp dword [0x40a8a0], 0xffffffff
jne 0x4062e0
push 4
push 0x40000000
push 0x440640
call fcn.00405c27
cmp eax, 0xffffffff
mov dword [0x40a8a0], eax
je 0x40630b
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a8a0], 0xffffffff
je 0x40630b
push esi
mov esi, 0x444a60
push 0x40aae8
push esi
call fcn.00405f75
lea eax, [ebp + 8]
push ebx
push eax
push esi
call fcn.00405f68
push eax
push esi
push dword [0x40a8a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x44023c], esi
push edi
jne 0x4064f7
mov ecx, 0x440238
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 0x4064d3
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x440638
jl 0x4064ce
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x40652c
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 + 0x440238]
xor eax, esi
inc ecx
dec edx
jne 0x40650f
pop edi
pop esi
not eax
ret 0xc