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

Disassembly:
push ebp
lea ebp, [esp - 0xf90]
mov eax, 0x1010
call fcn.00d78380
mov eax, dword [0xd91c20]
xor eax, ebp
mov dword [ebp + 0xf8c], eax
mov eax, dword [ebp + 0xf98]
push ebx
push esi
mov esi, dword [0xd883f4]
xor ebx, ebx
push ebx
mov dword [ebp - 0x7c], eax
push 4
lea eax, [ebp - 0x78]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0xd6482e
xor eax, eax
jmp 0xd64876
cmp dword [ebp - 0x78], ebx
jbe 0xd64865
push 0
push 0x1000
lea eax, [ebp - 0x74]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x80], eax
test eax, eax
je 0xd64865
mov ecx, dword [ebp - 0x7c]
push dword [ecx]
push eax
lea eax, [ebp - 0x74]
push 1
push eax
call fcn.00d74611
add ebx, dword [ebp - 0x80]
add esp, 0x10
cmp ebx, dword [ebp - 0x78]
jb 0xd64833
mov eax, dword [ebp - 0x7c]
push dword [eax]
call fcn.00d743d2
cmp ebx, dword [ebp - 0x78]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0xf8c]
pop esi
xor ecx, ebp
pop ebx
call fcn.00d73ae8
add ebp, 0xf90
leave
ret

Function at 0xd65f92
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 4], 0
and dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

Function at 0xd66126
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00d78380
mov eax, dword [0xd91c20]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xff8]
push esi
push edi
push 0xd8b8c0
push eax
lea eax, [ebp - 0x18]
mov esi, ecx
xor edi, edi
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call fcn.00d7404b
add esp, 0xc
cmp dword [ebp - 0x18], edi
jne 0xd66181
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
jmp 0xd66214
push ebx
push 2
push edi
push dword [ebp - 0x18]
call fcn.00d7471d
push dword [ebp - 0x18]
call fcn.00d7493f
push edi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
call fcn.00d7471d
lea eax, [ebp - 0x80]
call fcn.00d65f92
push dword [ebp - 0x18]
mov esi, 0x1000
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00d7433e
mov ebx, eax
add esp, 0x2c
cmp ebx, edi
jbe 0xd661ee
push ebx
lea edi, [ebp - 0x80]
lea ecx, [ebp - 0x14]
call fcn.00d65fbd
push dword [ebp - 0x18]
add dword [ebp - 0x1c], ebx
push esi
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00d7433e
mov ebx, eax
add esp, 0x14
test ebx, ebx
ja 0xd661c7
mov edi, dword [ebp - 0x20]
push edi
lea esi, [ebp - 0x80]
call fcn.00d66056
push dword [ebp - 0x18]
call fcn.00d743d2
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
pop ebx
cmp eax, dword [ebp - 0x24]
jb 0xd66173
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xfec]
pop edi
xor ecx, ebp
pop esi
call fcn.00d73ae8
add ebp, 0xff0
leave
ret
Function at 0xd679b7
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0xd679c2
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0xd67a74
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xd8ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xd8ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xd8ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xd8ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xd8ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xd8ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xd8ce70]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0xd8ce70]
inc ecx
sub edi, 8
dec esi
jne 0xd679d9
pop ebx
test edi, edi
je 0xd67a8d
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0xd8ce70]
inc ecx
dec edi
jne 0xd67a78
pop esi
not eax
pop edi
ret

Function at 0xd67a92
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0xd8ce70]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0xd8ce70]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x402a28
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 [0x7c57f0]
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 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d64
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x7c57f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
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 [0x7c57f0], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x402f04
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f31
mov ecx, dword [0x7c5798]
push edi
add eax, ecx
push edi
push eax
mov dword [0x79e4e4], eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040302f
cmp eax, edi
jl 0x403028
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409014]
call ebx
test eax, eax
je 0x403025
cmp dword [ebp - 4], esi
jne 0x403025
push dword [ebp + 8]
add dword [0x79e4e4], esi
call fcn.0040302f
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403028
cmp dword [ebp + 0x10], edi
jne 0x402ff4
cmp dword [ebp + 8], edi
jle 0x403020
mov esi, 0x79a4e0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fa4
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409014]
call ebx
test eax, eax
je 0x403025
cmp edi, dword [ebp - 4]
jne 0x403025
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ff0
cmp dword [ebp + 0x14], edi
jne 0x402ff0
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x79e4e4], eax
cmp dword [ebp + 8], 0
jg 0x402f97
jmp 0x403020
push 0xfffffffffffffffe
jmp 0x403027
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x402fff
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409014]
call ebx
test eax, eax
je 0x403025
mov eax, dword [ebp - 4]
add dword [0x79e4e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403028
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40302f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x79e4e4]
sub esi, dword [0x413c10]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x7c574c], eax
jle 0x403199
push dword [0x7a64f4]
call fcn.004031dd
push ebx
push ebx
push dword [0x413c10]
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x7a64f0], esi
mov dword [0x79e4e0], ebx
mov ebp, 0x7924e0
mov eax, dword [0x79e4e8]
mov edi, 0x4000
sub eax, dword [0x7a64f4]
cmp eax, edi
jg 0x4030a4
mov edi, eax
mov esi, 0x79a4e0
push edi
push esi
call fcn.004031ab
test eax, eax
je 0x40318b
add dword [0x7a64f4], edi
mov dword [0x413c18], esi
mov dword [0x413c1c], edi
cmp dword [0x7c5750], ebx
je 0x4030fb
cmp dword [0x7c57e0], ebx
jne 0x4030fb
mov eax, dword [0x7a64f0]
push ebx
sub eax, dword [0x79e4e4]
sub eax, dword [esp + 0x1c]
add eax, dword [0x413c10]
mov dword [0x79e4e0], eax
call fcn.00402bc5
pop ecx
push 0x413c18
mov dword [0x413c20], ebp
mov dword [0x413c24], 0x8000
call fcn.00405e3e
test eax, eax
jl 0x403194
mov esi, dword [0x413c20]
sub esi, ebp
je 0x403155
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403190
cmp esi, dword [esp + 0x10]
jne 0x403190
add dword [0x413c10], esi
cmp dword [0x413c1c], ebx
jne 0x4030ca
jmp 0x403161
cmp dword [0x413c1c], ebx
jne 0x403194
cmp edi, ebx
je 0x403194
mov eax, dword [0x79e4e4]
mov ecx, eax
sub ecx, dword [0x413c10]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40308e
push ebx
push ebx
push eax
push dword [0x409014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403199
or eax, 0xffffffff
jmp 0x4031a3
push 0xfffffffffffffffe
jmp 0x403196
push 0xfffffffffffffffd
pop eax
jmp 0x4031a3
push 1
call fcn.00402bc5
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4052a6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7bcd48], 0x44
push eax
xor eax, eax
push 0x7bcd48
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 0x4052e1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40536b
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.0040561a
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40539f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7c57c8], eax
jmp 0x405533
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4053bd
test eax, eax
je 0x4054de
test byte [ebp + 0xc], 2
je 0x4054de
mov esi, 0x7b8548
push edi
push esi
call fcn.00405a46
test ebx, ebx
je 0x4053da
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053e0
push edi
call fcn.00405580
cmp byte [edi], 0
jne 0x4053ee
cmp byte [0x7b8548], 0x5c
jne 0x4053f9
push 0x40900c
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 0x4054d4
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405564
cmp byte [eax], 0
je 0x40543f
cmp byte [ebp - 0x18], 0
je 0x40543f
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405455
mov al, byte [esi + 1]
test al, al
je 0x4054b3
cmp al, 0x2e
jne 0x405455
cmp byte [esi + 2], 0
je 0x4054b3
push esi
push ebx
call fcn.00405a46
test byte [ebp - 0x148], 0x10
je 0x40547a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054b3
push dword [ebp + 0xc]
push edi
call fcn.0040536b
jmp 0x4054b3
push edi
call fcn.004056fe
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054ab
test byte [ebp + 0xc], 4
je 0x4054a3
push edi
push 0xfffffffffffffff1
call fcn.00404de4
push 0
push edi
call fcn.00405794
jmp 0x4054b3
inc dword [0x7c57c8]
jmp 0x4054b3
push edi
push 0xfffffffffffffff2
call fcn.00404de4
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40541d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054de
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405533
cmp dword [ebp - 8], esi
jne 0x4054f3
inc dword [0x7c57c8]
jmp 0x405533
push edi
call fcn.00405d3d
test eax, eax
je 0x405533
push edi
call fcn.00405539
push edi
call fcn.004056fe
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40552b
test byte [ebp + 0xc], 4
je 0x4054eb
push edi
push 0xfffffffffffffff1
call fcn.00404de4
push esi
push edi
call fcn.00405794
jmp 0x405533
push edi
push 0xffffffffffffffe5
call fcn.00404de4
pop edi
pop esi
leave
ret 8
Function at 0x40561a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7ba548
push esi
call fcn.00405a46
push esi
call fcn.004055cd
mov edi, eax
test edi, edi
jne 0x40563b
xor eax, eax
jmp 0x40568d
push edi
call fcn.00405ca4
test byte [0x7c5758], 0x80
je 0x405654
mov al, byte [edi]
test al, al
je 0x405637
cmp al, 0x5c
je 0x405637
sub edi, esi
jmp 0x40566c
call fcn.00405d3d
test eax, eax
je 0x405666
test byte [eax], 0x10
je 0x405637
push esi
call fcn.00405580
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405658
call fcn.00405539
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 0x4056fe
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 0x40571a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40571d
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 0x40574c
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 0x405790
test edi, edi
jne 0x405757
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40578a
Function at 0x405794
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.00405d64
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4057b8
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4058f1
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7bced0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7bced0
je 0x4057fc
push 1
push 0
push esi
call fcn.0040571d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058f7
cmp eax, edi
jg 0x4058f7
mov esi, 0x7bc948
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058f7
cmp eax, edi
jg 0x4058f7
push esi
push ebp
push str._s_s_r_n
push 0x7bc548
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7c5750]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a68
push 4
push 0xc0000000
push esi
call fcn.0040571d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4058f1
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 0x4058ea
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 0x4058ea
cmp edi, dword [esp + 0x18]
jne 0x4058ea
push str._Rename__r_n
push esi
call fcn.00405692
test eax, eax
jne 0x4058fe
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a46
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7bc548
push eax
call fcn.004056de
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 [0x7c57d0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093b0
push eax
call fcn.00405692
test eax, eax
je 0x4058b5
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405925
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x40591a
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4058b7
Function at 0x40592d
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 0x40599e
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 0x40598d
cmp dword [ebp + 0x14], 1
je 0x40598f
cmp dword [ebp + 0x14], 2
je 0x40598f
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 0x405dd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7bd2d4], 0
push esi
jne 0x405e07
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 0x405de1
mov dword [ecx*4 + 0x7bd2d0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ddc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e38
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 + 0x7bd2d0]
xor eax, esi
inc ecx
dec edx
jne 0x405e1a
pop edi
not eax
pop esi
ret 0xc
Function at 0x40f315
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 0x40f33b
xor eax, eax
jmp 0x40f424
push 0x10
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.0040ee2a
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 0x40f382
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, esi
jmp 0x40f424
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 0x40f3aa
or edi, eax
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x40f423
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 0x40f421
lea eax, [ebp - 0x11c]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x40f39f
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.0040f26d
pop ecx
pop ecx
mov eax, esi
jmp 0x40f423
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x40f43e
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 0x40f473
cmp eax, 0x2746
je 0x40f47c
add edi, eax
cmp edi, dword [ebp + 0x10]
jge 0x40f47c
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 0x40f458
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4749d9
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4746cc
and eax, eax
sub esi, esi
call fcn.00474a10
add eax, 0x30f6d2fd
xor dword [edi], ecx
add esi, esi
sub esi, 0xeec6b6e7
mov eax, 0x3db26479
add edi, 2
and eax, eax
dec eax
cmp edi, edx
jl fcn.004749d9
or eax, eax
or esi, esi
ret