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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov dl, 1
mov eax, dword [0x425d40]
call fcn.0042bfb0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4a8e43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x54]
cmp dword [eax + 8], 0
jle 0x4a8e22
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0042d514
mov eax, dword [ebp - 8]
call fcn.0042c578
mov eax, dword [eax + 0x14]
mov edx, esi
call fcn.004274b8
cmp byte [ebp + 8], 0
je 0x4a8d0a
xor edx, edx
mov eax, ebx
call fcn.004a7c98
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, ebx
call fcn.004a7c98
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
mov eax, ebx
call fcn.004a7bc8
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
jmp 0x4a8d46
xor edx, edx
mov eax, ebx
call fcn.004a7c98
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
mov eax, ebx
call fcn.004a7bc8
imul esi, eax
mov edx, esi
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
xor edx, edx
mov eax, ebx
call fcn.004a7c98
mov edx, dword [eax]
call dword [edx + 0x20]
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, eax
xor edx, edx
xor eax, eax
call fcn.0041943c
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 8]
call fcn.0042c578
pop edx
call fcn.00427b1c
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.004a7bc8
dec eax
test eax, eax
jl 0x4a8dfa
inc eax
mov dword [ebp - 0x10], eax
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.004a7b6c
push 0
lea eax, [ebp - 0x20]
push eax
mov edx, esi
mov eax, ebx
call fcn.004a7cc4
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x20]
imul esi
xor edx, edx
mov dl, byte [ebp + 8]
imul edx
push eax
mov edx, esi
mov eax, ebx
call fcn.004a7cc4
mov eax, dword [eax + 4]
mov edx, dword [eax]
call dword [edx + 0x2c]
imul esi
mov dl, byte [ebp + 8]
xor dl, 1
and edx, 0x7f
imul edx
xor ecx, ecx
pop edx
call fcn.00419414
mov eax, dword [ebp - 8]
call fcn.0042c578
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x14]
inc esi
dec dword [ebp - 0x10]
jne 0x4a8d90
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004a7b6c
cmp byte [ebp + 0xc], 0
je 0x4a8e22
movzx eax, word [ebx + 0x58]
mov edx, 0x10
call fcn.0042e6f4
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.004a7348
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a8e4a
mov eax, dword [ebp - 8]
call fcn.00403644
ret
Function at 0x4b022c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4b029f
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 4], edx
test al, al
je 0x4b0289
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004b0088
cmp dword [ebp - 8], 0
je 0x4b027e
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00417a3c
test al, al
je 0x4b0289
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4b0289
mov eax, dword [ebp - 0xc]
call fcn.004b0184
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b02a6
lea eax, [ebp - 0xc]
call fcn.00404494
ret

Function at 0x4b0340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4b03fa
push dword fs:[edx]
mov dword fs:[edx], esp
test al, al
jne 0x4b0369
mov eax, ebx
call fcn.00404494
jmp 0x4b03e4
mov ecx, ebx
lea edx, [ebp - 4]
call fcn.004b0088
cmp dword [ebp - 4], 0
je 0x4b03e4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.00417a30
test al, al
je 0x4b03dd
xor eax, eax
push ebp
push 0x4b03d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.004b02b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b03e4
lea eax, [ebp - 0xc]
push eax
call sub.shell32.dll_SHGetMalloc
call fcn.00417a30
test al, al
je 0x4b03d5
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
ret
mov eax, ebx
call fcn.00404494
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b0401
lea eax, [ebp - 0xc]
call fcn.00406308
ret

Function at 0x4b3824
Capabilities:
Hash data with md5

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004b436c
mov dword [ebx], 0x67452301
mov dword [ebx + 4], 0xefcdab89
mov dword [ebx + 8], 0x98badcfe
mov dword [ebx + 0xc], 0x10325476
pop ebx
ret
Function at 0x4b4268
Capabilities:
Authenticate hmac

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff20
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x40
jle 0x4b42ad
lea eax, [ebp - 0x60]
call fcn.004b3824
mov edx, ebx
lea eax, [ebp - 0x60]
mov ecx, dword [ebp + 0xc]
call fcn.004b384c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.004b391c
mov dword [ebp + 0xc], 0x10
mov esi, dword [ebp + 8]
jmp 0x4b42af
mov esi, ebx
xor ecx, ecx
lea eax, [ebp - 0xa0]
lea edx, [ebp - 0xe0]
lea ebx, [ecx + 1]
cmp ebx, dword [ebp + 0xc]
jg 0x4b42d6
mov bl, byte [esi]
xor bl, 0x36
mov byte [eax], bl
mov bl, byte [esi]
xor bl, 0x5c
mov byte [edx], bl
inc esi
jmp 0x4b42dc
mov byte [eax], 0x36
mov byte [edx], 0x5c
inc ecx
inc edx
inc eax
cmp ecx, 0x40
jne 0x4b42bd
lea eax, [ebp - 0x60]
call fcn.004b3824
lea edx, [ebp - 0xa0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.004b384c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x60]
mov ecx, dword [ebp - 8]
call fcn.004b41d0
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.004b391c
lea eax, [ebp - 0x60]
call fcn.004b3824
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x60]
mov ecx, 0x40
call fcn.004b384c
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x60]
mov ecx, 0x10
call fcn.004b384c
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call fcn.004b391c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b6f14
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, ecx
mov dword [esp], edx
mov ebp, eax
xor esi, esi
mov ebx, dword [esp]
jmp 0x4b6f28
inc ebx
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
test edx, edx
jg 0x4b6f27
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
shl eax, 2
mov ebx, eax
mov eax, edi
mov edx, ebx
call fcn.00404af0
xor ebx, ebx
cmp esi, dword [esp]
jge 0x4b7091
inc ebx
mov eax, edi
call fcn.004049bc
mov dl, byte [ebp + esi]
and dl, 0xfc
and edx, 0xff
shr edx, 2
mov dl, byte [edx + 0x563224]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 1]
cmp eax, dword [esp]
jge 0x4b7049
inc ebx
mov eax, edi
call fcn.004049bc
mov dl, byte [ebp + esi]
and dl, 3
and edx, 0xff
shl edx, 4
mov cl, byte [ebp + esi + 1]
and cl, 0xf0
and ecx, 0xff
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x563224]
mov byte [eax + ebx - 1], dl
lea eax, [esi + 2]
cmp eax, dword [esp]
jge 0x4b7018
inc ebx
mov eax, edi
call fcn.004049bc
mov dl, byte [ebp + esi + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov cl, byte [ebp + esi + 2]
and cl, 0xc0
and ecx, 0xff
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x563224]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004049bc
mov dl, byte [ebp + esi + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x563224]
mov byte [eax + ebx - 1], dl
jmp 0x4b7085
inc ebx
mov eax, edi
call fcn.004049bc
mov dl, byte [ebp + esi + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov dl, byte [edx + 0x563224]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004049bc
mov byte [eax + ebx - 1], 0x3d
jmp 0x4b7085
inc ebx
mov eax, edi
call fcn.004049bc
mov dl, byte [ebp + esi]
and dl, 3
and edx, 0xff
shl edx, 4
mov dl, byte [edx + 0x563224]
mov byte [eax + ebx - 1], dl
inc ebx
mov eax, edi
call fcn.004049bc
mov byte [eax + ebx - 1], 0x3d
inc ebx
mov eax, edi
call fcn.004049bc
mov byte [eax + ebx - 1], 0x3d
add esi, 3
cmp esi, dword [esp]
jl 0x4b6f59
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4c308c
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, 0x30
mov edi, 0x5684fc
mov ecx, dword [esp]
lea edx, [esp + 0xc]
xor ebx, ebx
mov bl, byte [edi]
mov bl, byte [eax + ebx - 1]
xor bl, byte [ecx]
mov byte [edx], bl
inc edx
inc ecx
inc edi
dec esi
jne 0x4c30ab
mov esi, 1
mov edx, 0x568604
mov ecx, esi
dec ecx
mov eax, ecx
add eax, eax
lea eax, [eax + eax*2]
shl ecx, 2
xor ebx, ebx
mov bl, byte [esp + eax + 0xc]
mov edi, ebx
add edi, edi
xor ebx, ebx
mov bl, byte [esp + eax + 0x11]
add edi, ebx
xor ebx, ebx
mov bl, byte [esp + eax + 0xd]
shl ebx, 3
movzx ebp, byte [esp + eax + 0xe]
shl ebp, 2
add ebx, ebp
movzx ebp, byte [esp + eax + 0xf]
add ebp, ebp
add ebx, ebp
movzx eax, byte [esp + eax + 0x10]
add ebx, eax
mov dword [esp + 8], ebx
mov eax, 1
mov ebx, eax
dec ebx
je 0x4c3125
dec ebx
je 0x4c3149
dec ebx
je 0x4c316d
dec ebx
je 0x4c3190
jmp 0x4c31a9
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
mov bl, byte [ebx + ebp - 0x40]
and bl, 8
and ebx, 0xff
shr ebx, 3
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4c31a9
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
mov bl, byte [ebx + ebp - 0x40]
and bl, 4
and ebx, 0xff
shr ebx, 2
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4c31a9
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
mov bl, byte [ebx + ebp - 0x40]
and bl, 2
and ebx, 0xff
shr ebx, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
jmp 0x4c31a9
mov ebx, edi
add ebx, ebx
lea ebx, [edx + ebx*8]
mov ebp, dword [esp + 8]
mov bl, byte [ebx + ebp - 0x40]
and bl, 1
lea ebp, [eax + ecx]
mov byte [esp + ebp + 0x3b], bl
inc eax
cmp eax, 5
jne 0x4c3112
inc esi
add edx, 0x40
cmp esi, 9
jne 0x4c30c7
mov esi, 0x20
mov eax, 0x56852c
mov edx, dword [esp + 4]
xor ecx, ecx
mov cl, byte [eax]
mov cl, byte [esp + ecx + 0x3b]
mov byte [edx], cl
inc edx
inc eax
dec esi
jne 0x4c31ce
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c3208
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], ecx
mov esi, eax
xor eax, eax
mov al, dl
mov bl, byte [eax + 0x5685b3]
test bl, bl
jbe 0x4c3239
lea eax, [esi + 0x3e0]
call fcn.004c31e8
lea eax, [esi + 0x3fc]
call fcn.004c31e8
dec bl
jne 0x4c321f
mov cl, 0x30
mov edi, 0x568584
mov eax, dword [esp]
mov dl, byte [edi]
cmp dl, 0x1c
ja 0x4c325b
and edx, 0xff
mov dl, byte [esi + edx + 0x3df]
mov byte [eax], dl
jmp 0x4c326a
and edx, 0xff
mov dl, byte [esi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc edi
dec cl
jne 0x4c3243
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4c3278
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov bl, 1
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.004c3020
mov byte [esi], al
inc ebx
inc esi
cmp bl, 0x41
jne 0x4c3294
mov bl, 0x1c
mov esi, 0x56854c
lea edi, [ebp - 0x41]
mov dl, byte [esi]
mov eax, dword [ebp - 8]
call fcn.004c3020
mov byte [edi], al
mov dl, byte [esi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.004c3020
mov byte [edi + 0x1c], al
inc edi
inc esi
dec bl
jne 0x4c32b0
mov bl, 1
lea esi, [ebp - 0x3a1]
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.004c3208
inc ebx
add esi, 0x30
cmp bl, 0x11
jne 0x4c32d8
mov bl, 1
mov eax, 0x56847c
lea edx, [ebp - 0xa1]
cmp bl, 0x20
ja 0x4c3311
xor ecx, ecx
mov cl, byte [eax]
mov cl, byte [ebp + ecx - 0x422]
mov byte [edx], cl
jmp 0x4c331e
xor ecx, ecx
mov cl, byte [eax]
mov cl, byte [ebp + ecx - 0x422]
mov byte [edx], cl
inc ebx
inc edx
inc eax
cmp bl, 0x41
jne 0x4c32fd
mov byte [ebp - 9], 1
lea esi, [ebp - 0x3a1]
cmp byte [ebp + 8], 0
je 0x4c3348
lea ecx, [ebp - 0x61]
mov edx, esi
lea eax, [ebp - 0x81]
call fcn.004c308c
jmp 0x4c3370
xor eax, eax
mov al, byte [ebp - 9]
mov edx, 0x11
sub edx, eax
mov eax, edx
add eax, eax
lea eax, [eax + eax*2]
lea edx, [ebp + eax*8 - 0x3d1]
lea ecx, [ebp - 0x61]
lea eax, [ebp - 0x81]
call fcn.004c308c
mov bl, 0x20
lea eax, [ebp - 0xa1]
mov dl, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x4c3378
push esi
lea esi, [ebp - 0x81]
lea edi, [ebp - 0xa1]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
push esi
lea esi, [ebp - 0x61]
lea edi, [ebp - 0x81]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop esi
inc byte [ebp - 9]
add esi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x4c3330
mov bl, 0x40
mov esi, 0x5684bc
lea eax, [ebp - 0x3e1]
mov dl, byte [esi]
cmp dl, 0x20
ja 0x4c33de
and edx, 0xff
mov dl, byte [ebp + edx - 0x82]
mov byte [eax], dl
jmp 0x4c33ed
and edx, 0xff
mov dl, byte [ebp + edx - 0xc2]
mov byte [eax], dl
inc eax
inc esi
dec bl
jne 0x4c33c6
mov bl, 1
lea esi, [ebp - 0x3e1]
mov cl, byte [esi]
mov eax, dword [ebp - 4]
mov edx, ebx
call fcn.004c3048
inc ebx
inc esi
cmp bl, 0x41
jne 0x4c33fb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c6f68
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov ebp, ecx
mov dword [esp], edx
mov esi, eax
mov dl, byte [esi]
mov byte [esp + 4], dl
shl edx, 7
and dl, 0xff
mov al, byte [esi + 1]
xor ecx, ecx
mov cl, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
shl eax, 6
and al, 0xff
mov dl, byte [esi + 2]
xor ecx, ecx
mov cl, dl
shr ecx, 2
or al, cl
mov byte [esp + 6], al
shl edx, 5
and dl, 0xff
mov al, byte [esi + 3]
xor ecx, ecx
mov cl, al
shr ecx, 3
or dl, cl
mov byte [esp + 7], dl
shl eax, 4
and al, 0xff
xor edx, edx
mov dl, byte [esi + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
mov al, byte [esi + 4]
shl eax, 3
and al, 0xff
xor edx, edx
mov dl, byte [esi + 5]
shr edx, 5
or al, dl
mov byte [esp + 9], al
mov al, byte [esi + 5]
shl eax, 2
and al, 0xff
xor edx, edx
mov dl, byte [esi + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
mov al, byte [esi + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
mov edi, 8
lea eax, [esp + 4]
mov edx, 1
xor esi, esi
mov ecx, edx
xor ebx, ebx
mov bl, byte [eax]
shl ebx, cl
mov ecx, ebx
xor ecx, esi
and ecx, 1
mov esi, ecx
inc edx
cmp edx, 8
jne 0x4c7014
mov dl, byte [eax]
and dl, 0xfe
mov ecx, esi
or dl, cl
mov byte [eax], dl
inc eax
dec edi
jne 0x4c700f
mov eax, ebp
mov edx, 8
call fcn.00404af0
push 1
mov eax, ebp
call fcn.004049bc
mov edx, eax
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
call fcn.004c3278
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ce720
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4f5cc4
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
shl eax, 2
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, 4
mov ecx, esi
xor eax, eax
call fcn.00404b54
cmp byte [ebp - 1], 0
jne 0x4f5d22
mov eax, esi
call fcn.004049bc
mov dl, byte [ebp - 0xc]
dec edx
and dl, 0x3f
add dl, 0x21
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
add eax, 2
mov ecx, 3
cdq
idiv ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0xc], eax
mov edi, 2
xor eax, eax
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov al, byte [ebp - 1]
sub al, 1
jb 0x4f5d3b
sub al, 2
jb 0x4f5d42
jmp 0x4f5d47
mov ebx, 2
jmp 0x4f5d47
mov ebx, 1
mov eax, esi
call fcn.004049bc
mov byte [eax + ebx - 1], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4f5e29
test edi, edi
jle 0x4f5da3
mov eax, esi
call fcn.004049bc
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shl eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
and eax, edx
mov ecx, edi
shr eax, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
sub edi, 6
inc ebx
mov eax, esi
call fcn.004049bc
mov byte [eax + ebx - 1], 0
jmp 0x4f5e1d
test edi, edi
jge 0x4f5de9
mov eax, edi
cdq
xor eax, edx
sub eax, edx
mov edi, eax
mov eax, esi
call fcn.004049bc
lea eax, [eax + ebx - 1]
push eax
mov ecx, edi
mov eax, 0x3f
shr eax, cl
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
and al, byte [edx + ecx]
mov ecx, edi
shl al, cl
mov edx, dword [esi]
or al, byte [edx + ebx - 1]
pop edx
mov byte [edx], al
mov eax, 8
sub eax, edi
mov edi, eax
inc dword [ebp - 0x10]
jmp 0x4f5e1d
mov eax, esi
call fcn.004049bc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov dl, byte [edx + ecx]
and dl, 0x3f
mov ecx, dword [esi]
mov cl, byte [ecx + ebx - 1]
or dl, cl
mov byte [eax + ebx - 1], dl
inc ebx
inc dword [ebp - 0x10]
mov eax, esi
call fcn.004049bc
mov byte [eax + ebx - 1], 0
mov edi, 2
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4f5d5f
mov al, byte [ebp - 1]
sub al, 1
jb 0x4f5e39
sub al, 2
jb 0x4f5e72
jmp 0x4f5eb9
cmp edi, 2
jne 0x4f5e3f
dec ebx
mov eax, ebx
sub eax, 2
jl 0x4f5eb9
inc eax
mov dword [ebp - 0x14], eax
mov edi, 2
mov eax, esi
call fcn.004049bc
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x568ac0]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4f5e4f
jmp 0x4f5eb9
cmp edi, 2
jne 0x4f5e78
dec ebx
test ebx, ebx
jle 0x4f5eb4
mov dword [ebp - 0x14], ebx
mov edi, 1
mov eax, esi
call fcn.004049bc
mov edx, dword [esi]
movzx edx, byte [edx + edi - 1]
mov ecx, dword [0x568ac4]
mov dl, byte [ecx + edx]
mov byte [eax + edi - 1], dl
inc edi
dec dword [ebp - 0x14]
jne 0x4f5e84
jmp 0x4f5eb4
inc ebx
mov eax, esi
call fcn.004049bc
mov byte [eax + ebx - 1], 0x3d
test bl, 3
jne 0x4f5ea7
mov eax, esi
mov edx, ebx
call fcn.00404af0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f6cdc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc64
push ebx
xor edx, edx
mov dword [ebp - 0x39c], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405120
xor eax, eax
push ebp
push 0x4f6e78
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x568ae0], 0
je 0x4f6db3
mov eax, dword [ebp - 4]
call fcn.00404d78
cmp eax, 2
jne 0x4f6d2b
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
je 0x4f6d4c
mov eax, dword [ebp - 4]
call fcn.00404d78
cmp eax, 3
jne 0x4f6d73
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
jne 0x4f6d73
mov eax, dword [ebp - 4]
cmp word [eax + 4], 0x5c
jne 0x4f6d73
mov eax, dword [0x4f6e88]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
setne al
neg al
sbb ebx, ebx
jmp 0x4f6e57
lea eax, [ebp - 0x258]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d68
push eax
call sub.kernel32.dll_FindFirstFileW
cmp eax, 0xffffffff
setne dl
neg dl
sbb ebx, ebx
test ebx, ebx
je 0x4f6e57
test byte [ebp - 0x258], 0x10
setne dl
neg dl
sbb ebx, ebx
push eax
call sub.kernel32.dll_FindClose_1
jmp 0x4f6e57
mov eax, dword [ebp - 4]
call fcn.00404d78
cmp eax, 2
jne 0x4f6dca
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
je 0x4f6deb
mov eax, dword [ebp - 4]
call fcn.00404d78
cmp eax, 3
jne 0x4f6e0f
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x3a
jne 0x4f6e0f
mov eax, dword [ebp - 4]
cmp word [eax + 4], 0x5c
jne 0x4f6e0f
mov eax, dword [0x4f6e88]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov al, byte [eax]
mov byte [ebp - 8], al
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetDriveTypeA
test eax, eax
setne al
neg al
sbb ebx, ebx
jmp 0x4f6e57
lea eax, [ebp - 0x398]
push eax
lea eax, [ebp - 0x39c]
mov edx, dword [ebp - 4]
call fcn.0040472c
mov eax, dword [ebp - 0x39c]
call fcn.00404964
push eax
call sub.kernel32.dll_FindFirstFileA_1
cmp eax, 0xffffffff
setne dl
neg dl
sbb ebx, ebx
test ebx, ebx
je 0x4f6e57
test byte [ebp - 0x398], 0x10
setne dl
neg dl
sbb ebx, ebx
push eax
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6e7f
lea eax, [ebp - 0x39c]
call fcn.00404494
lea eax, [ebp - 4]
call fcn.00404bb0
ret
Function at 0x4f72ec
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405120
xor eax, eax
push ebp
push 0x4f73bf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x568ae0], 0
je 0x4f7380
mov eax, dword [ebp - 4]
cmp word [eax], 0x5c
jne 0x4f735d
mov eax, dword [ebp - 4]
cmp word [eax + 2], 0x5c
jne 0x4f735d
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404d78
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.00404f14
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x4f73d4
call fcn.00404de4
jmp 0x4f736d
lea eax, [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, 0x4f73ec
call fcn.00404de4
push ebx
mov eax, dword [ebp - 8]
call fcn.00404d68
push eax
call sub.kernel32.dll_CreateDirectoryW
mov ebx, eax
jmp 0x4f739c
push ebx
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.0040472c
mov eax, dword [ebp - 0x10]
call fcn.00404964
push eax
call sub.kernel32.dll_CreateDirectoryA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f73c6
lea eax, [ebp - 0x10]
call fcn.00404494
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404bc8
ret

Function at 0x4f82e4
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4f8315
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00404714
jmp 0x4f831c
mov eax, ebx
call fcn.00404494
add esp, 0x104
pop ebx
ret

Function at 0x4f96d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff58
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x98], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f980e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x4f9824
call fcn.004044e8
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4f97f5
mov edi, dword [ebp - 0x8c]
mov esi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x84]
dec eax
je 0x4f975e
dec eax
jne 0x4f97f5
lea eax, [ebp - 0x98]
call fcn.004fafa8
mov eax, dword [ebp - 0x98]
xor edx, edx
call fcn.00409450
mov edx, ebx
call fcn.004f7fcc
jmp 0x4f97f5
push ebx
mov dword [ebp - 0xa8], esi
mov byte [ebp - 0xa4], 0
mov dword [ebp - 0xa0], edi
mov byte [ebp - 0x9c], 0
lea edx, [ebp - 0xa8]
mov ecx, 1
mov eax, 0x4f9834
call fcn.0040a4bc
cmp esi, 4
jne 0x4f97a5
test edi, edi
jne 0x4f97a5
mov eax, ebx
mov edx, 0x4f9844
call fcn.0040476c
jmp 0x4f97f5
cmp esi, 4
jne 0x4f97d1
cmp edi, 0xa
jne 0x4f97d1
cmp byte [ebp - 0x7f], 0x41
jne 0x4f97c3
mov eax, ebx
mov edx, 0x4f9854
call fcn.0040476c
jmp 0x4f97f5
mov eax, ebx
mov edx, 0x4f9864
call fcn.0040476c
jmp 0x4f97f5
cmp esi, 4
jne 0x4f97e9
cmp edi, 0x5a
jne 0x4f97e9
mov eax, ebx
mov edx, 0x4f9874
call fcn.0040476c
jmp 0x4f97f5
mov eax, ebx
mov edx, 0x4f9884
call fcn.0040476c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f9815
lea eax, [ebp - 0x98]
call fcn.00404494
ret