joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46cb54
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40feac]
call fcn.004058a0
xor eax, eax
push ebp
push 0x46ccf5
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c5a8c], 0
jne 0x46cbaf
mov ecx, dword [0x4c9c88]
mov dl, 1
mov eax, dword [0x408464]
call fcn.0040dc90
call fcn.004046ec
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403694
mov eax, ebx
call fcn.00405750
mov dword [ebp - 0x24], eax
mov esi, 0x46cd04
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406b18
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.00405760
test eax, eax
jle 0x46cc98
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x46cc84
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405070
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46cc2a
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00405088
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x46cc40
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00405088
mov eax, dword [ebp - 0x54]
call fcn.00405290
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00405070
mov eax, dword [ebp - 0x58]
call fcn.00405290
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46cc86
xor eax, eax
test al, al
je 0x46cc91
mov ebx, 0x15
jmp 0x46cc9d
mov ebx, 0x10
jmp 0x46cc9d
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4c5a8c]
call fcn.0046c9d4
mov eax, dword [ebp - 4]
call fcn.0046c9d4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ccfc
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404e24
lea eax, [ebp - 0xc]
mov edx, dword [0x40feac]
call fcn.00405970
ret
Function at 0x475320
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
movzx ebx, bl
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
movzx edx, dl
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax*8 + 0x4c5d1c]
movzx eax, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x475358
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x475370
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x475369
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00403694
xor edx, edx
mov eax, 0x4c5f1c
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4753d7
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x47538e
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x475618
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x475631
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x47562a
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x475643
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x47563c
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.00475210
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x47565d
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.00475320
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x4756e5
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x475703
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.004752a0
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x47572d
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x475744
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x47575d
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x475756
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x475771
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00475110
test bl, bl
jne 0x47584b
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x4cfd90
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4757a9
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4757be
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00475618
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4757f1
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x47579e
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x475815
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x475827
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x47583c
jmp 0x47590c
cmp bl, 1
jne 0x47590c
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x4cfdea
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x47586b
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x475880
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00475618
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x4758b3
sub ebx, 6
inc dword [ebp - 8]
jne 0x475860
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4758db
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x4758ed
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x475902
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00475190
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x49b8c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x49b91a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0049b8b0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004991a0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00498cb8
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b921
lea eax, [ebp - 4]
call fcn.00404e00
ret
Function at 0x4a3b60
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x4a3bb5
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x4a3ba0
and byte [ebp - 0x72], 0xfe
jmp 0x4a3ba4
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x4a3c3c
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x4a3c3c
mov eax, ebx
movzx eax, al
bt dword [0x4c98cc], eax
jae 0x4a3c0a
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.004a3b14
pop ecx
cmp byte [ebp - 1], 0
je 0x4a3c37
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.004a3b14
pop ecx
jmp 0x4a3c37
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.004a3b14
pop ecx
cmp byte [ebp - 1], 0
je 0x4a3c37
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.004a3b14
pop ecx
dec si
jne 0x4a3bca
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a3c44
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
movzx edx, dl
bt dword [0x4c98cc], edx
jae 0x4a3c78
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.004a3b14
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.004a3b14
pop ecx
pop ebx
pop ebp
ret
Function at 0x4a4400
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x4a4451
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4a4438
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4a4428
jmp 0x4a4451
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x4a4439
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ad3dc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
test byte [ebx + 0x1c], 0x10
je 0x4ad53e
cmp dword [ebx + 0x30], 0
je 0x4ad53e
mov eax, dword [ebx + 0x30]
call fcn.00403d50
mov edx, 0x4ad554
call fcn.004a47b8
test al, al
je 0x4ad53e
mov edi, dword [ebx + 0x30]
mov eax, dword [esi]
sub eax, 0x201
je 0x4ad46a
sub eax, 2
je 0x4ad4d2
dec eax
jne 0x4ad533
mov eax, dword [esi + 8]
shr eax, 0x10
movzx edx, word [esi + 8]
add dx, word [ebx + 0x40]
movzx edx, dx
add ax, word [ebx + 0x44]
movzx eax, ax
shl eax, 0x10
or edx, eax
mov eax, edx
push eax
mov ecx, dword [esi + 4]
mov edx, 0x201
mov eax, edi
call fcn.0045f95c
mov edx, esi
mov eax, edi
mov ecx, dword [eax]
call dword [ecx - 0x14]
jmp 0x4ad547
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4ad484
mov edx, esi
mov eax, ebx
call fcn.004637f0
jmp 0x4ad547
mov edx, esi
mov eax, edi
mov ecx, dword [eax]
call dword [ecx - 0x14]
mov eax, dword [esi + 8]
shr eax, 0x10
movzx edx, word [esi + 8]
add dx, word [ebx + 0x40]
movzx edx, dx
add ax, word [ebx + 0x44]
movzx eax, ax
shl eax, 0x10
or edx, eax
mov eax, edx
push eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, edi
call fcn.0045f95c
mov eax, edi
call fcn.00466754
mov ebx, eax
call sub.user32.dll_GetCapture
cmp ebx, eax
jne 0x4ad547
call sub.user32.dll_ReleaseCapture
jmp 0x4ad547
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4ad4e9
mov edx, esi
mov eax, ebx
call fcn.004637f0
jmp 0x4ad547
mov eax, dword [esi + 8]
shr eax, 0x10
movzx edx, word [esi + 8]
add dx, word [ebx + 0x40]
movzx edx, dx
add ax, word [ebx + 0x44]
movzx eax, ax
shl eax, 0x10
or edx, eax
mov eax, edx
push eax
mov ecx, dword [esi + 4]
mov edx, 0x201
mov eax, edi
call fcn.0045f95c
mov edx, esi
mov eax, edi
mov ecx, dword [eax]
call dword [ecx - 0x14]
mov eax, dword [esi + 8]
push eax
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, edi
call fcn.0045f95c
jmp 0x4ad547
mov edx, esi
mov eax, ebx
call fcn.004637f0
jmp 0x4ad547
mov edx, esi
mov eax, ebx
call fcn.004637f0
pop edi
pop esi
pop ebx
ret
Function at 0x40149b
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.00401494
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d3994c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401524
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d3994c]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d39948]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d39948], eax
mov eax, dword [0x2d398a0]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d398a0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d39944], 0xf4ea3dee
call fcn.00401471
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014ec
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015f4
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d3994c]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d398a4]
test esi, esi
je 0x40163a
push ebx
xor ebx, ebx
cmp eax, 0x959
jne 0x401625
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.0040149b
add edi, 8
dec esi
je 0x401639
mov eax, dword [0x2d3994c]
jmp 0x40160d
pop ebx
pop edi
pop esi
ret 4
Function at 0x40cb28
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404e05
mov dword [ebp - 0x14], eax
cmp dword [0x440000], esi
jne 0x40cc1b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40cba8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ccfb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ccfb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ccfb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x440000], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x440004], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x440008], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x440010], eax
test eax, eax
je 0x40cc18
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44000c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cc40
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cc33
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40cc55
push 4
pop eax
jmp 0x40ccfd
cmp dword [ebp - 0x14], esi
je 0x40cc55
push dword [0x440000]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cc3a
mov eax, dword [0x44000c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ccb3
cmp dword [0x440010], edi
je 0x40ccb3
push eax
call ebx
push dword [0x440010]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ccb3
test eax, eax
je 0x40ccb3
call ecx
test eax, eax
je 0x40cca8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cca8
test byte [ebp - 8], 1
jne 0x40ccb3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40cce3
mov eax, dword [0x440004]
cmp eax, edi
je 0x40cce0
push eax
call ebx
test eax, eax
je 0x40cce0
call eax
mov esi, eax
test esi, esi
je 0x40cce0
mov eax, dword [0x440008]
cmp eax, edi
je 0x40cce0
push eax
call ebx
test eax, eax
je 0x40cce0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x440000]
call ebx
test eax, eax
je 0x40ccfb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ccfd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040eb
mov esp, ebp
pop ebp
ret
Function at 0x40afc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
nop
push edx
nop
push ebx
push esp
push ebp
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x64

Function at 0x40afd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov esi, 0xe
mov dword [ebp - 8], 0xd
mov eax, esi
add eax, dword [ebp - 8]
sub eax, 0x1b
call 0xf4863902
jmp 0x40b106
mov dword [ebp - 0x34], 0x2f54
mov ebx, dword [ebp - 0x34]
jmp 0x40b135
add ebx, 0x75bf
add dword [ebp - 0x18], 0x6dea
add dword [ebp - 0x18], 0x6019
mov eax, dword [ebp - 8]
add eax, esi
sub eax, 0x1b
mov dword [ebp - 0x10], eax
jmp 0x40b1f2
add ebx, 0x462d80
mov dword [ebp - 0x2c], 0x495000
mov dword [ebp - 0x38], 0x46d693
invalid
inc ebp

Function at 0x40b504
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40fd30
call fcn.0040b7c8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40b564
cmp eax, 0xffffffff
je 0x40b564
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40b55d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40b55d
cmp edx, 0x10000000
jae 0x40b55d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40b55a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40b5d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40b60e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40b606
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40b610
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40b5f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40b6e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40b711
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b711
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40b711
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40ddf8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x4116f4]
push edi
mov edi, edx
test edi, edi
je 0x40de47
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40de46
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
lea eax, [ebp - 4]
push 0
push eax
jne 0x40de3a
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x40de46
lea eax, [esi + esi]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x100011c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x100011fe
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001202
cmp edx, esi
jne 0x100011e7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x10001222
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001226
cmp edx, esi
jne 0x1000120b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x10001246
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000124a
cmp edx, esi
jne 0x1000122f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret