joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a98f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, eax
xor ebx, ebx
call fcn.004b9a98
test al, al
je 0x4a99f7
mov eax, dword [esi + 4]
mov edx, dword [0x4a7a84]
call fcn.004034a0
test al, al
je 0x4a99f7
mov ebx, dword [esi + 4]
cmp byte [ebx + 0x2f9], 0
je 0x4a9960
cmp byte [esi + 0x518], 0
jne 0x4a9960
push 0xffffffffffffffec
mov eax, esi
call fcn.00443e20
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
push eax
push 0xffffffffffffffec
mov eax, esi
call fcn.00443e20
push eax
call sub.user32.dll_SetWindowLongA
jmp 0x4a9996
cmp byte [ebx + 0x2f9], 0
jne 0x4a9996
cmp byte [esi + 0x518], 0
je 0x4a9996
push 0xffffffffffffffec
mov eax, esi
call fcn.00443e20
push eax
call sub.user32.dll_GetWindowLongA
and eax, 0xfff7ffff
push eax
push 0xffffffffffffffec
mov eax, esi
call fcn.00443e20
push eax
call sub.user32.dll_SetWindowLongA
mov al, byte [ebx + 0x2f9]
mov byte [esi + 0x518], al
mov al, byte [esi + 0x519]
cmp al, byte [ebx + 0x2fb]
je 0x4a99f7
cmp byte [ebx + 0x2f9], 0
je 0x4a99f7
cmp byte [ebx + 0x2fa], 0
je 0x4a99d9
mov eax, esi
call fcn.00443e20
xor edx, edx
call fcn.004b9ad4
mov byte [esi + 0x519], 0
jmp 0x4a99f7
mov eax, esi
call fcn.00443e20
mov dl, byte [ebx + 0x2fb]
call fcn.004b9ad4
mov al, byte [ebx + 0x2fb]
mov byte [esi + 0x519], al
push 0x51
push 0
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push 0
mov eax, esi
call fcn.00443e20
push eax
call sub.user32.dll_SetWindowPos
mov dl, 1
mov eax, esi
call fcn.0043d520
call fcn.004b9a98
test al, al
je 0x4a9ab7
test ebx, ebx
je 0x4a9ab7
cmp byte [ebx + 0x2fa], 0
je 0x4a9ab7
cmp byte [ebx + 0x2f9], 0
je 0x4a9ab7
mov eax, dword [0x4e31bc]
mov eax, dword [eax]
call fcn.0045cf14
xor edi, edi
xor ebp, ebp
call sub.kernel32.dll_GetTickCount
xor edx, edx
push edx
push eax
mov eax, ebp
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
cmp edx, 0
jne 0x4a9a77
cmp eax, 5
jbe 0x4a9a9f
jmp 0x4a9a79
jle 0x4a9a9f
call sub.kernel32.dll_GetTickCount
mov ebp, eax
add edi, 0xa
xor eax, eax
mov al, byte [ebx + 0x2fb]
cmp edi, eax
jle 0x4a9a91
mov edi, eax
mov eax, esi
call fcn.00443e20
mov edx, edi
call fcn.004b9ad4
mov eax, dword [0x4e31bc]
mov eax, dword [eax]
call fcn.0045cf14
xor eax, eax
mov al, byte [ebx + 0x2fb]
cmp edi, eax
jl 0x4a9a56
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4b2148
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b2298
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x350]
test eax, eax
je 0x4b2270
cmp dword [eax + 0x3f0], 0
je 0x4b2270
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x2f0]
cmp eax, 0xc8
jbe 0x4b2270
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x2f0], eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0043d600
mov eax, dword [ebp - 0xc]
call fcn.00404324
dec eax
jne 0x4b21f0
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.0043d600
mov eax, dword [ebp - 0x10]
call fcn.00404524
push eax
mov eax, ebx
call fcn.004b2d98
push eax
push 0x18f
mov eax, dword [ebx + 0x350]
mov eax, dword [eax + 0x3f0]
call fcn.00443e20
push eax
call sub.user32.dll_SendMessageA
mov esi, eax
jmp 0x4b2223
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0043d600
mov eax, dword [ebp - 0x14]
call fcn.00404524
push eax
push 0xffffffffffffffff
push 0x18f
mov eax, dword [ebx + 0x350]
mov eax, dword [eax + 0x3f0]
call fcn.00443e20
push eax
call sub.user32.dll_SendMessageA
mov esi, eax
test esi, esi
jl 0x4b2270
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0043d600
mov edx, esi
mov eax, ebx
call fcn.004b2da4
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0043d600
mov eax, dword [ebp - 4]
call fcn.00404324
mov edx, eax
mov eax, ebx
call fcn.004b2428
mov eax, dword [ebp - 8]
call fcn.00404324
push eax
mov eax, dword [ebp - 4]
call fcn.00404324
pop edx
sub edx, eax
mov eax, ebx
call fcn.004b2444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b229f
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404088
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404088
ret
Function at 0x4b22a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404514
xor eax, eax
push ebp
push 0x4b23c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x350]
test eax, eax
je 0x4b23af
cmp dword [eax + 0x3f0], 0
je 0x4b23af
cmp byte [ebx + 0x2f8], 0
je 0x4b2330
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x2f0]
cmp eax, 0x1f4
jb 0x4b2309
lea eax, [ebx + 0x2f4]
call fcn.00404064
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x2f0], eax
lea eax, [ebx + 0x2f4]
mov edx, dword [ebp - 4]
call fcn.0040432c
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x2f4]
call fcn.004040fc
mov eax, dword [ebp - 4]
call fcn.00404324
test eax, eax
jle 0x4b239f
mov eax, dword [ebp - 4]
call fcn.00404324
dec eax
jne 0x4b2376
mov eax, dword [ebp - 4]
call fcn.00404524
push eax
mov eax, ebx
call fcn.004b2d98
push eax
push 0x18f
mov eax, dword [ebx + 0x350]
mov eax, dword [eax + 0x3f0]
call fcn.00443e20
push eax
call sub.user32.dll_SendMessageA
jmp 0x4b23a2
mov eax, dword [ebp - 4]
call fcn.00404524
push eax
push 0xffffffffffffffff
push 0x18f
mov eax, dword [ebx + 0x350]
mov eax, dword [eax + 0x3f0]
call fcn.00443e20
push eax
call sub.user32.dll_SendMessageA
jmp 0x4b23a2
or eax, 0xffffffff
test eax, eax
jl 0x4b23af
mov edx, eax
mov eax, ebx
call fcn.004b2da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b23cc
lea eax, [ebp - 4]
call fcn.00404064
ret
Function at 0x4c5e48
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
test dl, dl
je 0x4c5e5d
add esp, 0xfffffff0
call fcn.00403638
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404514
xor eax, eax
push ebp
push 0x4c5f38
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.004c10f0
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004169c0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x24], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004169c0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x38], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x3c], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004169c0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x34], eax
lea ecx, [ebp - 0xc]
xor edx, edx
xor eax, eax
call fcn.004169c0
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], eax
push 0
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.004169e8
push esi
lea edi, [esi + 0x40]
lea esi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov dword [esi + 0xc], 0xffffffff
mov byte [esi + 0x52], 0
mov byte [esi + 0x53], 0
mov byte [esi + 0x54], 0
mov byte [esi + 0x55], 0
mov byte [esi + 0x50], 0
mov byte [esi + 0x51], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5f3f
lea eax, [ebp - 4]
call fcn.00404064
ret
Function at 0x4cb940
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cba3c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4cba54
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi]
mov edx, dword [ebp - 4]
lea eax, [ebx + 8]
call fcn.004040b8
push 0xffffffffffffffff
mov ecx, 0x4cba64
mov edx, dword [ebx + 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 8]
mov dword [ebx + 0x30], eax
mov ecx, 0x4cba80
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004ba0a0
mov byte [ebx + 0xc], al
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4cba9c
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004b9f8c
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0xd]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4cbab0
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004b9f8c
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x1d]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x14]
push eax
mov ecx, 0x4cbac8
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004b9f8c
push esi
lea esi, [ebp - 0x14]
lea edi, [ebx + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
mov ecx, 0x4cbae4
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004ba0a0
mov byte [ebx + 0x44], al
mov ecx, 0x4cbaf8
mov edx, dword [ebx + 4]
mov eax, esi
call fcn.004c0c3c
mov byte [ebx + 0x45], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cba43
lea eax, [ebp - 4]
call fcn.00404064
ret
Function at 0x4d59d4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414ec8]
call fcn.00404bc0
xor eax, eax
push ebp
push 0x4d5b18
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4e2cfc], 0
jne 0x4d5a27
mov ecx, dword [0x4e2ea8]
mov dl, 1
mov eax, dword [0x407560]
call fcn.0040bf80
call fcn.00403aa0
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d0c
mov eax, ebx
call fcn.004048d4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4d5b28
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405b54
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004048e4
test eax, eax
jle 0x4d5abf
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4d5ab8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004042ec
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004042d4
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004083b8
test eax, eax
jne 0x4d5ab8
mov ebx, 0x15
jmp 0x4d5ac4
mov ebx, 0x10
jmp 0x4d5ac4
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4e2cfc]
call fcn.004d592c
mov eax, dword [ebp - 8]
call fcn.004d592c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5b1f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404088
lea eax, [ebp - 0x10]
mov edx, dword [0x414ec8]
call fcn.00404c90
ret

Function at 0x4dd7b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4dd821
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4e2e04]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4dd80b
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004dd7a8
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4dd134]
call fcn.004dd848
mov dword [0x4e2e68], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd828
lea eax, [ebp - 8]
call fcn.00405b54
ret

Function at 0x4de624
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4de64b
mov edx, ebx
lea eax, [esp + 4]
call fcn.00408f38
add esp, 0x18
pop ebx
ret
Function at 0x406fc8
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebx
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x406fd7
call 0x8566eda
jo 0x40701e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x459e0c], eax
sub eax, eax
je 0x406ffc
call 0xa97b58e7
invalid
call 0x40193b
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
push 8
call fcn.00409abb
push 4
mov esi, eax
call fcn.00409abb
lea edi, [esi + 4]
push edi
push ebx
push eax
push 0x407952
push ebx
push ebx
mov dword [eax], 0x406d8b
call fcn.0040e511
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x407072
cmp dword [edi], ebx
jne 0x407044
push 1
jmp 0x407076
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
jne 0x407051
push 5
jmp 0x407076
push ebx
push dword [esi + 4]
push dword [esi]
call fcn.004095b1
add esp, 0xc
test eax, eax
je 0x407067
push 2
jmp 0x407076
pop edi
mov dword [esi], ebx
xor eax, eax
mov dword [esi + 4], ebx
pop esi
pop ebx
ret
mov dword [edi], ebx
push 6
call fcn.00407abf
int3

Function at 0x408b4f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x408b70
jl 0x408b67
test edi, edi
jne 0x408b70
xor eax, eax
xor edx, edx
jmp 0x408c31
cmp dword [ebx + 0x38], 0
je 0x408b85
push eax
push edi
push dword [ebp + 8]
call fcn.00408c37
jmp 0x408c31
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x408bcc
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x408bcc
cmp eax, edi
jb 0x408ba6
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040a920
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x408bd2
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x408c26
mov ecx, ebx
call fcn.004083b7
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x408c11
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041119d
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x408c26
jmp 0x408be4
test edx, edx
je 0x408c26
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041119d
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401902
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404415]
lea edx, [fcn.00401974]
sub eax, edx
push eax
push fcn.00401974
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401341
push esi
call fcn.004017e8
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401832
mov eax, esi
add eax, 0x1cc00
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
mov ecx, esi
inc ecx
cdq
idiv ecx
push eax
lea edi, [0x4060e4]
mov eax, esi
lea ebx, [0x4060e4]
or bl, 1
mul ebx
mov dword [ebp - 0x8c], eax
mov ebx, eax
sub edi, eax
push edi
call fcn.00401974
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401902
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
call sub.KERNEL32.dll_GetLastError
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x40de60
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4691eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045dc36
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40dee2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045bb4d
mov eax, dword [eax]
push 0x48c1c8
push eax
call fcn.0044e9b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045dec1
test bl, bl
je 0x40dee2
push 0x48c1c8
lea ecx, [esp + 0xc]
call fcn.0045e251
push 0x48fd44
lea ecx, [esp + 0xc]
call fcn.0045e251
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40df1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045dec1
jmp 0x40dfe9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40dfa2
lea edx, [esp + 0x7c]
push 0x48fd40
push edx
call fcn.0044e9b4
add esp, 8
test eax, eax
je 0x40dfa2
lea eax, [esp + 0x7c]
push 0x48fd3c
push eax
call fcn.0044e9b4
add esp, 8
test eax, eax
je 0x40dfa2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40df32
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045dec1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40e7e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40e842
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40e850
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46926b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4961e8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40e988
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40e8b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045dec1
xor eax, eax
jmp 0x40e9ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045dffe
push esi
lea ecx, [esp + 0xc]
call fcn.0045e28d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40e9dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040e7e0
test eax, eax
jne 0x40e9dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040e7e0
test eax, eax
jne 0x40e9dd
lea eax, [esp + 0x14]
push 0x48fd58
push eax
call fcn.0044f9f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e9bc
lea ecx, [esp + 0x14]
push 0x48fd54
push ecx
call fcn.0044f970
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e9bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40e9bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045dfae
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40e8ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045dec1
xor eax, eax
jmp 0x40e9ff
mov byte [esi], 0
push 0x48fd50
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045dec1
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4