joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470c46
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push esi
mov ecx, 0x549150
call fcn.0046ef0a
push esi
mov ecx, 0x548dc8
call fcn.0046ef0a
push esi
mov ecx, 0x548f24
call fcn.0046ef0a
push esi
mov ecx, 0x548f94
call fcn.0046ef0a
push esi
mov ecx, 0x548f5c
call fcn.0046ef0a
push esi
mov ecx, 0x548ea8
call fcn.0046ef0a
push esi
mov ecx, 0x5490e0
call fcn.0046ef0a
push esi
mov ecx, 0x548e70
call fcn.0046ef0a
push esi
mov ecx, 0x5491c0
call fcn.0046ef0a
push esi
mov ecx, 0x549118
call fcn.0046ef0a
push esi
mov ecx, 0x548e00
call fcn.0046ef0a
push esi
mov ecx, 0x548e38
call fcn.0046ef0a
push esi
mov ecx, 0x548ee0
call fcn.0046ef0a
push esi
mov ecx, 0x549028
call fcn.0046ef0a
push esi
mov ecx, 0x5490a8
call fcn.0046ef0a
push esi
mov ecx, 0x549188
call fcn.0046ef0a
push esi
mov ecx, 0x549060
call fcn.0046ef0a
pop esi
ret
push ecx
mov eax, dword [0x548aa4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
jmp 0x470c61
mov dword [eax + 0x10], ebp
mov dword [eax + 0x14], ebp
mov eax, dword [eax + 0x38]
cmp eax, ebp
jne 0x470c58
xor edi, edi
cmp dword [0x548f20], ebp
je 0x470d02
mov eax, dword [0x548f18]
mov eax, dword [eax + edi*4]
cmp eax, ebp
je 0x470cf5
test byte [eax + 0xe], 0x20
je 0x470cf5
cmp byte [eax + 0x18], 6
jne 0x470cf5
cmp dword [eax + 0xc0], ebp
je 0x470cf5
mov edx, dword [eax + 0x84]
mov ecx, dword [eax + 0x88]
mov esi, edx
or esi, ecx
je 0x470cc3
cmp dword [0x548aac], ecx
jl 0x470cc3
jg 0x470cb7
cmp dword [0x548aa8], edx
jb 0x470cc3
mov dword [eax + 0x84], ebp
mov dword [eax + 0x88], ebp
xor esi, esi
cmp dword [eax + 0xc0], ebp
jle 0x470cf5
lea edx, [eax + 0xac]
mov ecx, dword [edx]
mov ebx, dword [eax + 0x60]
add dword [ecx + 0x10], ebx
adc dword [ecx + 0x14], ebp
mov ecx, dword [edx]
mov ebx, dword [eax + 0x60]
add dword [ecx + 0x18], ebx
adc dword [ecx + 0x1c], ebp
inc esi
add edx, 4
cmp esi, dword [eax + 0xc0]
jl 0x470cd3
inc edi
cmp edi, dword [0x548f20]
jne 0x470c73
xor ebx, ebx
cmp dword [0x548f20], ebp
je 0x470d5b
mov eax, dword [0x548f18]
mov esi, dword [eax + ebx*4]
mov al, byte [esi + 0xe]
test al, 0x20
je 0x470d52
and al, 6
xor edi, edi
cmp al, 2
jne 0x470d2f
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x78]
cmp eax, edi
jae 0x470d2f
mov edi, eax
cmp byte [esi + 0x18], 6
mov ecx, esi
sete al
movzx eax, al
push eax
mov eax, dword [esi]
call dword [eax + 0x20]
movzx eax, al
push eax
push dword [esp + 0x18]
lea ecx, [esi + 0x48]
push edi
call fcn.0046ecbb
inc ebx
cmp ebx, dword [0x548f20]
jne 0x470d0c
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 4
jmp 0x46efda
Function at 0x4720ae
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
and dword [esp + 0xc], 0
cmp byte [esi], 0
mov edi, eax
mov dword [esp + 8], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
je 0x472256
push ebx
push ebp
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x19
pop esi
call ebx
cmp byte [0x549024], 0
jne 0x4720f7
call fcn.004b4abf
test al, al
je 0x472100
push esi
call dword [sym.imp.KERNEL32.DLL_Sleep]
xor esi, esi
mov ecx, esi
call fcn.0046e41d
mov ebp, eax
call fcn.004a3d7e
mov dword [0x548aa8], eax
mov dword [0x548aac], edx
call ebx
mov esi, eax
sub eax, edi
test eax, eax
jle 0x472129
mov dword [esp + 0x18], eax
jmp 0x47212e
and dword [esp + 0x18], 0
mov ecx, esi
sub ecx, dword [esp + 0x10]
mov eax, 0x3e8
xor bl, bl
mov edi, esi
cmp ecx, eax
jb 0x472158
add dword [esp + 0x10], eax
mov eax, esi
sub eax, dword [esp + 0x10]
inc bl
cmp eax, 0x7d0
jb 0x472158
mov dword [esp + 0x10], esi
call fcn.0046e5c1
mov ecx, ebp
call fcn.00472062
cmp byte [0x548dc0], 0
jne 0x47217d
call fcn.004e3ffe
mov ecx, dword [0x549da0]
call fcn.0049e18b
mov ebp, esi
sub ebp, dword [esp + 0x1c]
cmp ebp, 0x32
jb 0x4721ec
call fcn.004a3d7e
mov dword [0x548aa8], eax
xor eax, eax
mov dword [0x548aac], edx
mov dword [esp + 0x1c], eax
cmp dword [0x548f20], eax
jbe 0x4721cb
mov ecx, dword [0x548f18]
mov ecx, dword [ecx + eax*4]
test byte [ecx + 0xe], 0x20
je 0x4721ba
call fcn.00470d6b
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [0x548f20]
jb 0x4721a6
mov ecx, ebp
call fcn.0046f98f
mov ecx, ebp
call fcn.0046fd58
mov ecx, dword [esp + 0x18]
movzx eax, bl
cdq
push edx
push eax
mov dword [esp + 0x24], esi
call fcn.0046e660
test bl, bl
je 0x47222c
cmp byte [0x548dc0], 0
jne 0x4721fe
call fcn.00420132
mov ecx, esi
sub ecx, dword [esp + 0x20]
call fcn.00470c46
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x1e
mov dword [esp + 0x20], esi
jne 0x47222c
call fcn.0046f619
call fcn.00423736
call fcn.004a306b
and dword [esp + 0x14], 0
mov cl, bl
call fcn.00470bec
mov ecx, dword [esp + 0x18]
movzx eax, bl
cdq
push edx
push eax
call fcn.00472010
call fcn.0046e5dd
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
jne 0x4720da
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x472429
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47243d
test al, 0x10
jne 0x47243d
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x472440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x472454
test al, 0x10
je 0x472454
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x47254d
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp word [edi], 0x22
jne 0x472562
inc edi
inc edi
push 0x22
lea eax, [edi + 2]
push eax
jmp 0x472565
push 0x20
push edi
call sub.MSVCRT.dll_wcschr
mov esi, eax
pop ecx
xor ebx, ebx
pop ecx
test esi, esi
je 0x47257e
movzx ebx, word [esi]
xor eax, eax
mov word [esi], ax
inc esi
inc esi
push 5
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test esi, esi
je 0x472596
mov word [esi - 2], bx
pop edi
pop esi
pop ebx
ret

Function at 0x472785
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push edi
mov edi, edx
mov esi, 0x104
test ecx, ecx
jne 0x4727af
lea eax, [ebp - 0x618]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
lea ecx, [ebp - 0x618]
lea eax, [ebp - 0x208]
push eax
push 0
push 0x504384
push ecx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
jne 0x4727e9
call sub.MSVCRT.dll_rand
push eax
call sub.MSVCRT.dll_rand
push eax
push str.c:_u_u.tmp
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.0048d59f
add esp, 0x14
test edi, edi
je 0x47282e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4727f2
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
push ecx
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.0042260d
mov eax, edi
lea ecx, [ebp - 0x410]
call fcn.004722be
lea ecx, [ebp - 0x410]
jmp 0x472834
lea ecx, [ebp - 0x208]
call fcn.004221f4
pop edi
pop esi
leave
ret

Function at 0x4728ce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
mov edi, edx
push dword [ebp + 0xc]
mov ebx, ecx
call fcn.00472393
test eax, eax
jne 0x47291e
push esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x472904
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x47291d
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x47291b
sub esi, eax
push esi
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x4729f8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
mov eax, edx
push esi
mov ebx, ecx
push edi
mov edx, 0x50438c
mov ecx, eax
call fcn.004a327a
mov esi, eax
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dl, 1
mov ecx, esi
mov edi, eax
call fcn.0046b3e9
cmp edi, 0xffffffff
je 0x472a79
cmp byte [ebp + 8], 0
jne 0x472a44
cmp word [ebp - 0x224], 0x2e
je 0x472a60
lea ecx, [ebp - 0x224]
call fcn.004221f4
push 4
mov ecx, ebx
mov esi, eax
call fcn.0048f151
test eax, eax
je 0x472a60
mov dword [eax], esi
lea eax, [ebp - 0x250]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x472a34
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x472b45
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x148
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 4]
mov ecx, ebx
mov dword [edi], 0x504394
call fcn.0048ea4a
lea ecx, [edi + 8]
call fcn.0048ea4a
lea ecx, [edi + 0xc]
call fcn.0048ea4a
lea ecx, [edi + 0x10]
call fcn.0048ea4a
lea eax, [ebp - 0xd0]
push eax
mov dword [ebp - 0xd0], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x472c58
push dword [ebp - 0xc4]
lea eax, [ebp + 0x70]
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
push str._d._d._d
push eax
call fcn.0048f06d
movzx eax, byte [ebp + 0x4a]
add esp, 0x14
dec eax
mov esi, str.unknown
je 0x472be8
dec eax
je 0x472bdf
dec eax
je 0x472bd6
mov dword [ebp + 0x74], esi
jmp 0x472bef
mov dword [ebp + 0x74], str.server
jmp 0x472bef
mov dword [ebp + 0x74], str.domaincontroller
jmp 0x472bef
mov dword [ebp + 0x74], str.workstation
push str.Windows
mov ecx, ebx
call fcn.0048e984
push dword [ebp + 0x74]
lea ecx, [edi + 8]
call fcn.0048e984
push dword [ebp + 0x70]
lea ecx, [edi + 0xc]
call fcn.0048e984
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx eax, word [ebp + 0x4c]
test eax, eax
je 0x472c41
cmp eax, 6
je 0x472c3a
lea ecx, [edi + 0x10]
cmp eax, 9
je 0x472c33
push esi
jmp 0x472c49
push str.amd64
jmp 0x472c49
push str.itanium
jmp 0x472c46
push 0x504398
lea ecx, [edi + 0x10]
call fcn.0048e984
lea ecx, [ebp + 0x70]
call fcn.0048e75f
jmp 0x472c8f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004448e5
add esp, 4
mov esi, str.unknown
push esi
mov ecx, ebx
call fcn.0048e984
push esi
lea ecx, [edi + 8]
call fcn.0048e984
push esi
lea ecx, [edi + 0xc]
call fcn.0048e984
push esi
lea ecx, [edi + 0x10]
call fcn.0048e984
lea ecx, [edi + 0x10]
call fcn.0048e964
push eax
lea ecx, [edi + 0xc]
call fcn.0048e964
push eax
lea ecx, [edi + 8]
call fcn.0048e964
push eax
mov ecx, ebx
call fcn.0048e964
push eax
call fcn.004448e5
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x475f1d
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x238]
push edi
mov dword [ebp + 0x74], esi
call fcn.0047416a
mov esi, dword [esi + 0x10c]
push 5
pop ecx
mov dword [ebp + 0x5c], 0x32716572
lea edi, [ebp + 0x60]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x94]
call fcn.004e676c
push 0x18
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004e7a53
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0xc]
rep movsd dword es:[edi], dword [esi]
push 5
pop ecx
mov esi, ebx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
xor eax, eax
mov ecx, dword [ebx + eax + 0x14]
xor dword [ebp + eax - 0xc], ecx
add eax, 4
cmp eax, 0x14
jb 0x475f78
mov al, byte [0x5373bd]
mov esi, dword [ebp + 0x74]
shr al, 2
not al
and al, 1
or al, 2
mov dword [ebp + 0x10], edi
mov byte [ebp + 0x13], al
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov byte [ebx], al
push dword [esi + 0x10c]
xor eax, eax
mov word [ebp + 0x14], ax
mov eax, 0x4400
mov word [ebp + 0x16], ax
lea eax, [ebp + 0x18]
push eax
mov ecx, esi
call fcn.0047411a
push 0x14
push dword [esi + 0x10c]
mov ecx, esi
call fcn.00475e3c
lea eax, [ebp + 8]
push eax
push eax
push 0x54
lea eax, [ebx + 9]
push eax
call fcn.00484b54
lea eax, [ebx + 1]
push eax
push eax
mov dword [ebx + 5], edi
push 8
add ebx, 0x10b
push ebx
mov dword [eax], edi
call fcn.00484b54
push edi
push 0x7c
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0047053d
lea ecx, [ebp - 0x94]
call fcn.004e6791
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x478180
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xac
push ebx
push esi
mov esi, dword [ebp + 0x7c]
mov ebx, ecx
mov edx, dword [ebx + 0x238]
push edi
mov dword [ebp + 0x6c], edx
push 5
lea eax, [esi + 0x14]
sub edx, esi
lea ecx, [ebp + 0x3c]
pop esi
mov edi, dword [edx + eax]
xor edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
dec esi
jne 0x4781a7
and dword [ebp + 0x70], esi
cmp dword [0x549c08], esi
je 0x478218
mov eax, dword [0x549c00]
mov ecx, dword [ebp + 0x70]
mov esi, dword [eax + ecx*4]
push 5
pop ecx
mov dword [ebp + 0x50], 0x32716572
lea edi, [ebp + 0x54]
mov dword [ebp + 0x68], esi
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x38]
call fcn.004e676c
push 0x18
lea eax, [ebp + 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.004e7a53
push eax
lea ecx, [ebp + 0x3c]
call fcn.0040793a
lea ecx, [ebp - 0x38]
test al, al
jne 0x478222
call fcn.004e6791
inc dword [ebp + 0x70]
mov eax, dword [ebp + 0x70]
cmp eax, dword [0x549c08]
jne 0x4781c2
push str.No_such_torrent
jmp 0x4782ac
call fcn.004e6791
push 0x14
push dword [ebp + 0x68]
mov ecx, ebx
call fcn.00475e3c
mov edi, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x6c]
and dword [ebx + 0xa4], 0
lea esi, [edi + 0x28]
push esi
push esi
add eax, 9
push 0xe
mov dword [ebx + 0xa0], eax
or byte [ebx + 0xe], 0x40
push eax
call fcn.00484b54
mov ax, word [edi + 0x34]
rol ax, 8
cmp dword [esi], 0
movzx edx, ax
jne 0x4782a7
cmp dword [edi + 0x2c], 0
jne 0x4782a7
cmp edx, 0x200
ja 0x4782a7
mov al, byte [edi + 0x33]
mov ecx, dword [ebp + 0x6c]
mov byte [ecx], al
test al, 2
je 0x478296
test byte [0x5373bd], 4
jne 0x478291
test al, 1
jne 0x478296
mov byte [ecx], 2
jmp 0x47829a
and al, 1
mov byte [ecx], al
add edx, 2
mov dword [ebx + 0x1ec], edx
mov al, 1
jmp 0x4782b5
push str.Error_in_DH_header_3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x30]
xor al, al
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x47d8aa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp ebx, edi
je 0x47d9d5
mov ecx, ebx
call fcn.0040884d
push edi
push 0x80
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.0048ea50
push 4
pop edx
mov ecx, eax
call fcn.0047267a
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x47d9cd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
call fcn.0048ea50
lea edx, [ebp - 0x18]
mov ecx, eax
call fcn.004a3ccc
mov ecx, dword [ebp - 0x18]
mov eax, ecx
or eax, dword [ebp - 0x14]
mov dword [ebp + 8], edi
je 0x47d938
call fcn.0046b3f1
push edi
lea ecx, [ebp + 8]
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
lea ecx, [ebp - 0xc]
call fcn.0047230d
push dword [ebx + 0x618]
push 0x4fd188
call fcn.0048d5bd
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x214]
pop ecx
pop ecx
cmp eax, edi
jne 0x47d967
mov eax, 0x4f1e13
push eax
push dword [ebp - 0x10]
push dword [ebp + 8]
push str.HTTP_1.1_200_OK_r_nServer:_BitTorrent_DNA_Proxy_1.0_r_nContent_Type:_application_x_bittorrent_r_nConnection:_close_r_nContent_Length:__d_r_nContent_Disposition:_attachment__filename__s__r_n_s_r_n
call fcn.0048d5bd
mov ebx, eax
push ebx
push dword [esi + 0x10]
call fcn.0044a225
add esp, 0x18
mov dl, 1
mov ecx, ebx
call fcn.0046b3e9
mov ecx, dword [ebp - 0x10]
mov dl, 1
call fcn.0046b3e9
cmp dword [ebp + 8], edi
je 0x47d9b2
mov ecx, dword [esi + 0x10]
push edi
push edi
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0047060f
jmp 0x47d9bc
mov ecx, dword [ebp - 8]
mov dl, 1
call fcn.0046b3e9
mov eax, dword [esi + 0x10]
or byte [eax + 0x210], 1
mov ecx, esi
call fcn.0047d346
lea ecx, [ebp - 4]
call fcn.0048e75f
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x484b54
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
je 0x484bdc
push ebp
push ebx
push esi
push edi
push eax
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
movzx eax, byte [ebp]
movzx ebx, byte [ebp + 1]
mov edi, dword [esp + 0x24]
inc al
add ebp, 2
lea edx, [edx + esi - 1]
mov dword [esp], edx
movzx ecx, byte [ebp + eax]
sub edi, esi
jmp 0x484b94
add ebx, ecx
and ebx, 0xff
movzx edx, byte [ebp + ebx]
mov byte [ebp + ebx], cl
mov byte [ebp + eax], dl
add edx, ecx
and edx, 0xff
movzx edx, byte [ebp + edx]
add eax, 1
and eax, 0xff
xor dl, byte [esi]
movzx ecx, byte [ebp + eax]
cmp esi, dword [esp]
mov byte [esi + edi], dl
lea esi, [esi + 1]
jb 0x484b94
dec eax
pop ecx
mov byte [ebp - 1], bl
mov byte [ebp - 2], al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x4877ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x549784], ebx
je 0x487856
push esi
mov dword [ebp - 8], ebx
push edi
mov eax, dword [0x54977c]
mov ecx, dword [ebp - 8]
lea edi, [ecx + eax]
cmp dword [edi + 0x24], ebx
je 0x487842
mov dword [ebp - 4], ebx
mov esi, dword [edi + 0x1c]
add esi, dword [ebp - 4]
push dword [edi + 0x10]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
call fcn.00486a73
add dword [ebp - 4], 0x54
add al, al
xor al, byte [esi + 0x3c]
and al, 2
xor byte [esi + 0x3c], al
inc ebx
cmp ebx, dword [edi + 0x24]
jne 0x487818
xor ebx, ebx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], 0x2c
cmp eax, dword [0x549784]
jne 0x487805
pop edi
pop esi
pop ebx
leave
ret

Function at 0x488b45
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov ebx, edx
call fcn.004221f4
and dword [ebp - 4], 0
mov edi, eax
jmp 0x488ba5
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jl 0x488b9a
call fcn.004b4ad8
test eax, eax
jne 0x488b9a
push edi
push dword [0x551e28]
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0x32
call fcn.0046960b
add esp, 0xc
cmp eax, 5
je 0x488bb4
cmp eax, 3
je 0x488bdd
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
mov ecx, ebx
call fcn.004075a0
mov esi, eax
cmp esi, 3
je 0x488b5d
cmp esi, 1
jne 0x488bc7
push edi
push dword [0x551e2c]
call fcn.0041ffc1
pop ecx
pop ecx
mov dl, 1
mov ecx, edi
call fcn.0046b3e9
xor eax, eax
pop edi
cmp esi, 1
pop esi
setle al
pop ebx
leave
ret
push 1
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x48b37d
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
call fcn.004078ca
test al, al
je 0x48b3af
push dword [esi + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push eax
call esi
push eax
push str._I.in_addr.arpa
call fcn.0048d5bd
pop ecx
pop ecx
jmp 0x48b490
push edi
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 0x4f23d4
movsd dword es:[edi], dword [esi]
call fcn.0048d5bd
mov esi, eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 4]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0x10]
push eax
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x12]
push eax
movzx eax, byte [esi + 0x13]
push eax
movzx eax, byte [esi + 0x14]
push eax
movzx eax, byte [esi + 0x15]
push eax
movzx eax, byte [esi + 0x16]
push eax
movzx eax, byte [esi + 0x17]
push eax
movzx eax, byte [esi + 0x18]
push eax
movzx eax, byte [esi + 0x19]
push eax
movzx eax, byte [esi + 0x1a]
push eax
movzx eax, byte [esi + 0x1b]
push eax
movzx eax, byte [esi + 0x1c]
push eax
movzx eax, byte [esi + 0x1d]
push eax
movzx eax, byte [esi + 0x1e]
push eax
movzx eax, byte [esi + 0x1f]
push eax
push str._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c.ip6.arpa
call fcn.0048d5bd
add esp, 0x8c
mov dl, 1
mov ecx, esi
mov edi, eax
call fcn.0046b3e9
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x490f7e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp byte [0x54bc1d], 0
mov byte [ebp - 4], dl
mov dword [ebp - 0xc], ecx
jne 0x490f97
xor eax, eax
leave
ret
push ebx
push esi
lea ecx, [ebp - 8]
call fcn.0048fe9e
mov ecx, eax
call fcn.0048ea50
mov ecx, eax
call fcn.00472440
mov bl, al
neg bl
sbb bl, bl
lea ecx, [ebp - 8]
inc bl
call fcn.0048e75f
test bl, bl
je 0x491001
push 0
lea ecx, [ebp - 8]
call fcn.0048fe9e
mov ecx, eax
call fcn.0048ea50
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0048e75f
test esi, esi
jne 0x491001
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x491001
test eax, eax
je 0x491001
xor eax, eax
jmp 0x491173
cmp byte [ebp - 0xc], 0
mov eax, dword [0x548aac]
mov ecx, dword [0x548aa8]
mov edx, dword [0x549b20]
jne 0x491032
cmp byte [ebp - 4], 0
jne 0x491044
cmp eax, dword [0x549a3c]
jg 0x491038
jl 0x49103c
cmp ecx, dword [0x549a38]
jae 0x491038
jmp 0x49103c
cmp byte [ebp - 4], 0
jne 0x491044
test edx, edx
je 0x491044
push 2
pop eax
jmp 0x491173
add ecx, 0x258
push 0
pop esi
adc eax, esi
mov dword [0x549a38], ecx
mov dword [0x549a3c], eax
cmp edx, esi
je 0x49106e
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [0x549b20], esi
jne 0x49105e
call fcn.0046e5c1
lea ecx, [ebp - 0x34]
call fcn.00406edf
lea ecx, [ebp - 0x34]
call fcn.00484ef4
call fcn.0046e5dd
push str.global_resume.dat
lea ecx, [ebp - 8]
call fcn.0048ea2a
lea edx, [ebp - 8]
lea ecx, [ebp - 0x10]
call fcn.0048feb7
lea ecx, [ebp - 8]
call fcn.0048e75f
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x34]
xor bl, bl
call fcn.0048fef1
test eax, eax
jne 0x4910bb
inc bl
cmp dword [0x549c08], 0
push edi
mov edi, 0x4f20b4
je 0x491158
call fcn.0046e5c1
lea ecx, [ebp - 0x24]
call fcn.00406edf
mov eax, dword [0x549c00]
push dword [eax + esi*4]
lea eax, [ebp - 0x14]
push str._H.dat
push eax
call fcn.0048f08b
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 8]
call fcn.0048feb7
lea ecx, [ebp - 0x14]
call fcn.0048e75f
push dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [0x549c00]
mov ecx, dword [eax + esi*4]
call fcn.00413bc1
call fcn.0046e5dd
lea edx, [ebp - 8]
lea ecx, [ebp - 0x24]
call fcn.0048fef1
test eax, eax
jne 0x491130
mov bl, 1
lea ecx, [ebp - 0x24]
call fcn.00406861
lea ecx, [ebp - 8]
call fcn.0048e75f
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
call fcn.004067a4
inc esi
cmp esi, dword [0x549c08]
jne 0x4910ce
lea ecx, [ebp - 0x10]
call fcn.0048e75f
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], edi
call fcn.004067a4
xor eax, eax
test bl, bl
sete al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x494352
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x218]
mov ecx, dword [edi]
mov dword [esi], 0x509b64
test ecx, ecx
je 0x494370
call fcn.00447fa4
and dword [edi], 0
lea edi, [esi + 0x224]
mov ecx, dword [edi]
test ecx, ecx
je 0x494384
call fcn.004a7fa6
and dword [edi], 0
pop edi
mov ecx, esi
pop esi
jmp fcn.0044a812