joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c510
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
shr eax, 3
je 0x42c58f
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov ecx, dword [edi]
mov edx, dword [edi + 4]
xor eax, eax
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, edx
sub eax, 0x61c88647
add ebp, ecx
lea ecx, [ebx + ebp]
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, ecx
add ebp, edx
cmp eax, 0xc6ef3720
lea edx, [ebx + ebp]
jne 0x42c530
mov eax, dword [esp + 0x14]
mov dword [edi], ecx
mov dword [edi + 4], edx
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x42c529
pop edi
pop ebp
pop ebx
call fcn.0042c480
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
push 0x10
push ecx
push 1
push esi
mov ecx, eax
call dword [edx]
pop esi
ret 0xc

Function at 0x42c5b0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 8]
shr eax, 3
je 0x42c62d
push ebx
push ebp
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov eax, 0xc6ef3720
mov ebx, edx
mov ebp, edx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
shr ebp, 0xb
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, edx
add eax, 0x61c88647
add ebx, ebp
sub ecx, ebx
mov ebx, ecx
mov ebp, ecx
shr ebx, 5
shl ebp, 4
xor ebx, ebp
mov ebp, eax
and ebp, 3
add ebx, dword [esi + ebp*4]
mov ebp, eax
xor ebp, ecx
add ebx, ebp
sub edx, ebx
test eax, eax
jne 0x42c5d3
mov eax, dword [esp + 0x14]
mov dword [edi], edx
mov dword [edi + 4], ecx
add edi, 8
dec eax
mov dword [esp + 0x14], eax
jne 0x42c5c9
pop edi
pop ebp
pop ebx
call fcn.0042c480
mov ecx, dword [esp + 0xc]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x14]
push 0x10
push ecx
push 0
push esi
mov ecx, eax
call dword [edx]
pop esi
ret 0xc
Function at 0x4491b0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4491d9
push eax
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [0x4629fc]
add esp, 4
test eax, eax
je 0x4491d9
mov eax, dword [0x4629f8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret
Function at 0x50575f
Capabilities:
Execute anti-debugging instructions

Disassembly:
not ah
mov dword [esp], str.type_dnumber_dreserved_duserid_duserid2_dgameid_d
cwde
push esp
not ah
mov dword [esp], 0x103
pushal
lea eax, [ebp - 0x12c]
call fcn.00503fef
Function at 0x5068fb
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 4]
jge 0x50c864
btc dx, di
sub dh, 0x1a
mov edx, dword [ebp - 0x18]
pushal
clc
pushal
add edx, dword [ebp - 0x24]
cmc
test cl, ah
push dword [esp + 4]
cmp edx, dword [ebp + 0xc]
call fcn.00500a95
shl ch, cl
sbb edx, 0x1e88f4c1
sar ch, cl
or edx, 0x88ce8fa
and eax, 0xff
mov dx, cx
shld dx, cx, 0xb
bts dx, dx
movzx dx, al
and eax, 0xf8
clc
mov ecx, dword [ebp - 0x18]
add dl, 0xd3
and ecx, 0xff
test al, 0xfc
or eax, ecx
inc dl
sbb dh, 0xbb
movsx edx, cl
adc dx, si
mov byte [ebp - 0x10], al
shl ax, 9
test bp, bp
pushfd
mov dword [ebp - 0x1c], 1
lea esp, [esp + 4]
inc edx
add eax, esi
xadd ah, dl
btr dx, bx
mov edx, dword [ebp - 0x18]
ror eax, cl
cwde
mov al, 0xde
setle al
mov eax, dword [ebp - 0x18]
call fcn.00510b6b
fsub st(3), st(0)
stc
out dx, al
loope 0x501053
cmp dword [ebp - 0x66], ebx
movsb byte es:[edi], byte [esi]
xor al, 0x25
cmp dword [edx], ebp
aaa
and esi, dword [esi]
sub eax, 0x1809170d
or ecx, dword [ecx]
or esi, dword [ebx + 0x7c]
sbb esi, ebx
cmp eax, 0x65c5b905
sal bl, cl
int 0x42
xor eax, 0xc2dba3a5
fcmovnbe st(0), st(2)
fucom st(5)
inc esp
pop ds
mov word [ebx + 0x6f8bd7ab], es
push esp
cmc
test al, 0x73
push 0xffffffffffffffc5
inc esp
jno 0x50112c
insd dword es:[edi], dx
insd dword es:[edi], dx
inc eax
dec edi
dec edi
pop eax
push edi
push edi
cmpsb byte [esi], byte es:[edi]
dec ebp
and edx, ebp
in eax, 0xe5
pop esp
xchg esi, eax
std
shl byte [ebx], cl
inc ebx
cli
pop edx
jno 0x501126
salc
enter 0x1404, 0xffffffffffffffc6
lcall 0x53d1, 0x842e2cf9
or ch, dl
js 0x501082
or eax, 0xdac0c0c6
aad 0x64
dec ecx
inc eax
inc eax
push edi
push ecx
push cs
and eax, 0xfa8381ab
and byte [edx - 0x24], dl
push edx
mov es, word [ebp + 0x65]
cli
mov ecx, 0x72ef79c6
inc ebp
lodsb al, byte [esi]
invalid
pushfd
test eax, 0x25f4e0a5
in al, dx
jo 0x501134
mov dh, 0x2e
xor ch, al
dec edx
invalid
pushal
lea esp, [esp + 0x44]
jmp fcn.00501aeb
pushfd
mov dword [ebp - 4], eax
jmp 0x5096ec
test eax, ebx
cmp dword [ebp - 0x24], 8
push 0xc70e5cd2
jmp 0x500fda
mov dword [ebp - 0x24], 0
push eax
mov byte [esp], 0xb4
mov dword [esp + 0xc], ebp
pushfd
lea esp, [esp + 0x14]
jmp 0x508297
rdtsc
rdtsc
mov cl, al
lea ecx, [ebp - 0x10]
push 0xddd29b4a
rdtsc
mov dword [esp], ecx
cwde
bswap eax
bswap edx
mov edx, dword [ebp + 0x10]
lea eax, [esp - 0x2d681c94]
pushal
mov dword [esp + 0x1c], edx
bswap ax
lea eax, [ebp - 0x10]
push esi
mov dword [esp + 0x1c], eax
mov byte [esp], 0x5b
jmp 0x51128b
push esi
pushal
jmp 0x5049b9
push 0x68233227
lea esp, [esp + 0x20]
call fcn.005002d9
push ebp
add ch, 0x6a
pop edx
add esp, 0xc
shl cl, cl
mov ecx, dword [ebp + 8]
shld dx, bp, cl
sub dl, al
bswap dx
add ecx, 8
shr dh, 5
shr dl, cl
mov dword [ebp + 8], ecx
cmc
mov edx, dword [ebp - 0x18]
clc
add edx, 8
pushal
pushal
mov dword [ebp - 0x18], edx
pushfd
pushfd
pushfd
pushfd
mov dword [ebp - 0x1c], 0
lea esp, [esp + 0x50]
pushal
lea esp, [esp + 0x20]
jns 0x50f67e
pushal
lea esp, [esp + 0x20]
jmp fcn.00501aeb
Function at 0x508518
Capabilities:
Execute anti-debugging instructions

Disassembly:
setl al
movzx ax, al
mov dword [esp + 0x24], str.type_dnumber_dreserved_duserid_duserid2_dgameid_d
movzx ax, cl
cwde
call fcn.005096ca
xchg dx, cx
xchg dword [esp + 0x30], eax
rdtsc
rdtsc
mov ecx, dword [ebp - 0x18]
lahf
rdtsc
mov dword [esp + 0x2c], ecx
cwde
mov edx, dword [ebp - 0x14]
mov byte [esp], 0xa4
mov dword [esp + 0x28], edx
jmp 0x507652

Function at 0x5096ca
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [esp + 0x24], 0x103
pushfd
lea eax, [ebp - 0x12c]
pushfd
pushfd
pushfd
push dword [esp]
mov dword [esp + 0x34], eax
push dword [esp + 0x14]
call fcn.00507bc8

Function at 0x50b95f
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [ebp - 0x14], 0
pushfd
pushfd
lea esp, [esp + 8]
jmp 0x500f37
clc
add esp, 0x10
jmp 0x50565a

Function at 0x50c752
Capabilities:
Execute anti-debugging instructions

Disassembly:
push 0x103
cwde
setle al
setns ah
pushfd
lea eax, [ebp - 0x12c]
jmp 0x50c70d
pop ecx
mov dword [esp + 0x38], eax
rdtsc
cwde
mov ecx, dword [ebp - 0x18]
cwde
movzx ax, dl
lea esp, [esp + 0x38]
jge 0x50f57f
rdtsc
push ecx
movzx edx, dl
push 0x51c526c2
mov edx, dword [ebp - 0x14]
push dword [esp]
lahf
seta ah
mov dword [esp + 4], edx
lahf
mov byte [esp], al
mov dword [esp], str.type_dnumber_dreserved_duserid_duserid2_dgameid_d
movsx ax, cl
jmp 0x50552e

Function at 0x50efdb
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushal
lea esp, [esp + 0x28]
jb 0x50211c
or di, 0x3309
mov cx, 0x1b41
and ch, ah
clc
mov dword [ebp - 0x14], 0x12b
shrd di, ax, cl
mov dword [ebp - 4], 0
test ecx, 0x1a683d57
stc
xchg edi, ecx
mov dword [ebp - 0x20], str.report.gamesafe.qq.com
dec edx
mov byte [ebp - 0x12c], 0
sub edi, 0x9c4e2218
sbb ch, al
bswap cx
mov ecx, 0x40
bt di, dx
xor eax, eax
lea edi, [ebp - 0x6070befc]
bswap di
lea edi, [ebp - 0x12b]
mov dx, dx
pushal
push 0x40f666c1
call fcn.00504508
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x446cb0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405742
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x446cb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
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 [0x446cb0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x402d42
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 0x402d5f
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402d6e
mov ebx, 0x4178e8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402d83
mov ecx, dword [0x446c18]
add ecx, eax
push ecx
call fcn.00402d2b
push 4
lea eax, [ebp + 0x14]
push eax
call fcn.00402cf9
test eax, eax
jne 0x402d9a
push 0xfffffffffffffffd
pop eax
jmp 0x402ef3
test dword [ebp + 0x14], 0x80000000
je 0x402ed2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x4278f0
mov dword [ebp - 0xc], eax
call fcn.00405f08
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x402ef0
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402dda
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x4138e8
push edi
call fcn.00402cf9
test eax, eax
je 0x402d92
sub dword [ebp + 0x14], esi
mov dword [0x427908], edi
mov dword [0x42790c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x4278f0
mov dword [0x427910], ebx
mov dword [0x427914], eax
call fcn.00405f28
mov dword [ebp - 0x14], eax
test eax, eax
jl 0x402ec4
mov esi, dword [0x427910]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x446cb4], 1
mov edi, eax
je 0x402e78
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402e45
cmp dword [ebp + 0x14], 0
jne 0x402e78
push dword [ebp + 8]
mov eax, 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.004046f1
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402eb9
cmp dword [ebp + 0x10], eax
jne 0x402ea1
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 0x402ecb
cmp dword [ebp - 0x10], esi
jne 0x402ecb
add dword [ebp - 4], esi
jmp 0x402ead
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x427910]
cmp dword [ebp - 0x14], 1
jne 0x402df9
jmp 0x402ef0
cmp dword [ebp + 0x14], eax
jg 0x402dcd
jmp 0x402ef0
push 0xfffffffffffffffc
jmp 0x402d94
push 0xfffffffffffffffe
jmp 0x402d94
test edi, edi
je 0x402f39
cmp dword [ebp + 0x14], esi
jge 0x402ede
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00402cf9
test eax, eax
je 0x402d92
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x402f05
mov esi, dword [ebp + 0x14]
push esi
mov edi, 0x4138e8
push edi
call fcn.00402cf9
test eax, eax
je 0x402d92
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402ecb
cmp esi, dword [ebp + 0x10]
jne 0x402ecb
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402efa
jmp 0x402ef0
Function at 0x40532d
Capabilities:
Create process on windows

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

Function at 0x4054af
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 0x4054cc
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4054cf
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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 0x4054fe
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
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405542
test edi, edi
jne 0x405509
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40553c

Function at 0x405546
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4055b7
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4055a6
cmp dword [ebp + 0x14], 1
je 0x4055a8
cmp dword [ebp + 0x14], 2
je 0x4055a8
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 0x405800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x439a08
push esi
call fcn.0040565f
push esi
call fcn.00405438
mov edi, eax
test edi, edi
jne 0x405821
xor eax, eax
jmp 0x405879
push edi
call fcn.00405681
test byte [0x446c28], 0x80
je 0x40583a
mov al, byte [edi]
test al, al
je 0x40581d
cmp al, 0x5c
je 0x40581d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x40585a
push esi
call fcn.0040571b
test eax, eax
je 0x405854
test byte [eax], 0x10
je 0x40587e
push esi
call fcn.004057d9
push esi
call ebx
cmp eax, edi
jg 0x405845
push esi
call fcn.004057ac
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405878
Function at 0x405b32
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.00405742
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405b56
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405c8f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x43ba08], 0x4c554e
mov edi, 0x400
mov ebp, 0x43ba08
test esi, esi
je 0x405b9a
push 1
push 0
push esi
call fcn.004054cf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405c95
cmp eax, edi
jg 0x405c95
push edi
mov esi, 0x43c348
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405c95
cmp eax, edi
jg 0x405c95
push esi
push ebp
push str._s_s_r_n
push 0x43be08
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x446bcc]
push dword [eax + 0x128]
push esi
call fcn.004058d8
push 4
push 0xc0000000
push esi
call fcn.004054cf
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405c8f
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 0x405c88
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405c88
cmp edi, dword [esp + 0x18]
jne 0x405c88
push str._Rename__r_n
push esi
call fcn.00405882
test eax, eax
jne 0x405c9c
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.0040565f
add edi, 0xa
mov eax, edi
push ebx
push 0x43be08
add eax, esi
push eax
call fcn.0040548b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
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 [0x446c90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407614
add eax, 0xa
push eax
call fcn.00405882
test eax, eax
je 0x405c53
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405cc3
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405cb8
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405c55
Function at 0x405ccb
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405800
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405d00
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x446c88], eax
jmp 0x405e92
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405d1b
test eax, eax
je 0x405e3d
test cl, 2
je 0x405e3d
push edi
push ebx
mov esi, 0x43c748
push esi
call fcn.0040565f
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405d3e
push str..
push esi
call edi
jmp 0x405d44
push ebx
call fcn.004057d9
cmp byte [ebx], 0
jne 0x405d52
cmp byte [0x43c748], 0x5c
jne 0x405d5a
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405e32
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.004053f4
cmp byte [eax], 0
je 0x405d9d
cmp byte [ebp - 0x18], 0
je 0x405d9d
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405db3
mov al, byte [esi + 1]
test al, al
je 0x405e11
cmp al, 0x2e
jne 0x405db3
cmp byte [esi + 2], 0
je 0x405e11
push esi
push edi
call fcn.0040565f
test byte [ebp - 0x148], 0x10
je 0x405dd8
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405e11
push dword [ebp + 0xc]
push ebx
call fcn.00405ccb
jmp 0x405e11
push ebx
call fcn.004054af
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405e09
test byte [ebp + 0xc], 4
je 0x405e01
push ebx
push 0xfffffffffffffff1
call fcn.004046f1
push 0
push ebx
call fcn.00405b32
jmp 0x405e11
inc dword [0x446c88]
jmp 0x405e11
push ebx
push 0xfffffffffffffff2
call fcn.004046f1
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405d7f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405e3c
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405e91
cmp dword [ebp - 8], esi
je 0x405e81
push ebx
call fcn.0040571b
test eax, eax
je 0x405e91
push ebx
call fcn.004057ac
push ebx
call fcn.004054af
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405e89
test byte [ebp + 0xc], 4
je 0x405e81
push ebx
push 0xfffffffffffffff1
call fcn.004046f1
push esi
push ebx
call fcn.00405b32
jmp 0x405e91
inc dword [0x446c88]
jmp 0x405e91
push ebx
push 0xffffffffffffffe5
call fcn.004046f1
pop esi
pop ebx
leave
ret 8
Function at 0x405e97
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x43e74c], 0
jne 0x405ed5
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 0x405eab
mov dword [ecx*4 + 0x43e748], eax
inc ecx
cmp ecx, 0x100
jl 0x405ea6
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x405f02
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 + 0x43e748]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x405ee3
not eax
pop ebp
ret 0xc
Function at 0x101e0d0
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [ebp + 0x1c], ecx
je 0x101e169
cmp word [ecx + 8], 2
push ebx
push edi
jne 0x101e13a
cmp word [ecx + 0xa], 4
jne 0x101e13a
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x101e13a
mov ebx, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ebx
push ecx
call fcn.0101e050
test eax, eax
mov dword [esi], eax
je 0x101e15d
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x101e114
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x18]
push 0x400
push edx
push 0x401
push eax
call dword [sym.imp.MSVCR80.dll_strncpy_s]
add esp, 0x10
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret 0x18
pop edi
pop ebx
mov eax, 8
pop esi
pop ebp
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x101e179.11001
jmp dword [eax*4 + 0x101e1a0]
mov eax, 0x2af9
pop esi
pop ebp
ret 0x18
mov eax, 0x2afa
pop esi
pop ebp
ret 0x18
mov eax, 0x2afb
pop esi
pop ebp
ret 0x18