joyce8/EMBER2024-capa huggingface dataset:
Function at 0x58b370
Capabilities:
Capture screenshot

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x58b392
push esi
mov esi, dword [0x64531c]
test esi, esi
je 0x58b391
cmp dword [esi], eax
je 0x58b393
mov esi, dword [esi + 0xe54]
test esi, esi
jne 0x58b383
pop esi
ret
mov eax, dword [esi + 0x724]
test eax, eax
jne 0x58b391
mov eax, dword [esi]
push eax
call fcn.0058a890
add esp, 4
test eax, eax
je 0x58b391
push esi
mov dword [esi + 0x724], 1
call fcn.00584a30
add esp, 4
pop esi
mov dword [esp + 4], 0
jmp fcn.005562e0

Function at 0x58bc90
Capabilities:
Get hostname

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x114]
push edi
lea ebp, [esi + 0x83c]
push ebp
lea eax, [esp + 0x14]
push 0x104
push eax
mov dword [esi + 0x424], 1
call fcn.00423900
mov eax, dword [0x609d7c]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x58bced
cmp byte [ebp], bl
je 0x58bced
push ebx
push 0x1772
call fcn.00421db0
push eax
push ebp
call fcn.005e31f5
add esp, 0x10
test eax, eax
jne 0x58bd20
push 0x5a
push ebp
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x58bd1a
push ebx
push 0x1772
call fcn.00421db0
add esp, 8
mov edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x58bd10
mov byte [esi + 0x896], bl
cmp dword [0x609d80], ebx
jne 0x58bd63
cmp dword [esi + 0x904], ebx
je 0x58bd63
lea edi, [esp + 0x10]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [edi]
jne 0x58bd5a
cmp cl, bl
je 0x58bd56
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [edi + 1]
jne 0x58bd5a
add eax, 2
add edi, 2
cmp cl, bl
jne 0x58bd36
xor eax, eax
jmp 0x58bd5f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x58bdde
push ebx
push 0x1772
call fcn.00421db0
push eax
push ebp
call fcn.005e31f5
add esp, 0x10
test eax, eax
jne 0x58bdeb
push ebx
push 0x1772
call fcn.00421db0
add esp, 8
lea edx, [esi + 0x8a0]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x58bd90
cmp dword [esi + 0x420], ebx
mov dword [esi + 0x904], ebx
je 0x58bdde
lea edi, [esi + 0x440]
push edi
push 0x1777
mov dword [esi + 0x82c], 1
call fcn.00421db0
push esi
call fcn.0058b6a0
add esp, 0xc
test eax, eax
push esi
je 0x58be64
push edi
call fcn.0058b480
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
lea edi, [esi + 0x1c]
push 0x400
push edi
call fcn.00423a00
mov eax, dword [0x645324]
add esp, 8
push 0x400
push edi
push ebp
push 0x8009
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByName]
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x58bdde
cmp dword [esi + 0x41c], ebx
mov dword [esi + 0x424], ebx
jne 0x58bdde
cmp dword [esi + 0x420], ebx
mov dword [esi + 0x904], ebx
je 0x58bdde
lea edi, [esi + 0x440]
push edi
push 0x1778
mov dword [esi + 0x82c], 2
call fcn.00421db0
push esi
call fcn.0058b6a0
add esp, 0xc
test eax, eax
push esi
jne 0x58bdd5
push 7
push edi
call fcn.00460b70
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
Function at 0x58cff0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x578
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x58d016
mov eax, 1
add esp, 0x578
ret
push eax
call fcn.0058b3e0
add esp, 4
push eax
push 0
push 0x177e
call fcn.00421db0
add esp, 8
push eax
lea ecx, [esp + 0x198]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0
push 0
push 0
push 0
push 4
push 3
push 0
lea edx, [esp + 0x1b8]
push edx
push 0x60a598
push 0
call fcn.004cfed0
add esp, 0x34
xor eax, eax
add esp, 0x578
ret

Function at 0x58d070
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00502a60
add esp, 4
test eax, eax
je 0x58d1df
push esi
push 4
call fcn.004cd190
mov eax, dword [esi + 0x904]
add esp, 8
test eax, eax
je 0x58d0aa
push esi
call fcn.0058bb10
push esi
call fcn.004ce210
add esp, 8
push ebx
push ebp
push edi
lea ebp, [esi + 0x1c]
push 0x400
push ebp
call fcn.00423a00
mov eax, dword [esi + 0x10]
mov ebx, dword [sym.imp.WSOCK32.dll_inet_addr]
add esp, 8
test eax, eax
je 0x58d10c
or edi, 0xffffffff
mov edi, edi
cmp edi, 0xffffffff
jne 0x58d0f7
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push ecx
call ebx
mov edx, dword [esi + 0x10]
push edx
mov edi, eax
call fcn.004e3090
add esp, 4
test eax, eax
mov dword [esi + 0x10], eax
jne 0x58d0d0
cmp edi, 0xffffffff
je 0x58d10c
push esi
push edi
push 0
push 0
call fcn.0058beb0
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
lea edi, [esi + 0x1124]
push edi
call ebx
cmp eax, 0xffffffff
je 0x58d12f
push esi
push eax
push 0
push 0
call fcn.0058beb0
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
mov eax, dword [0x617034]
test eax, eax
je 0x58d17d
mov eax, dword [0x61702c]
test eax, eax
je 0x58d17d
mov eax, dword [esi + 8]
push eax
call fcn.00493360
push edi
call fcn.00493220
add esp, 8
test eax, eax
jne 0x58d17d
mov ecx, dword [esi + 8]
push esi
push ecx
push eax
add esi, 0x10c0
push esi
call fcn.005cbe51
add esp, 4
push eax
push edi
call fcn.00495580
add esp, 0x14
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
mov edx, dword [0x645324]
push 0x400
push ebp
push edi
push 0x800c
push edx
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByName]
test eax, eax
mov dword [esi + 0x18], eax
jne 0x58d1dc
mov eax, dword [esi + 0x41c]
test eax, eax
jne 0x58d1dc
mov eax, dword [esi + 0x420]
test eax, eax
je 0x58d1bb
mov dword [esi + 0x82c], 3
lea edi, [esi + 0x440]
push edi
push 0x1779
call fcn.00421db0
push esi
call fcn.0058b6a0
push esi
push edi
call fcn.0058b480
add esp, 0x14
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret
Function at 0x5a70ad
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5a70da
push esi
call fcn.005a8732
cmp byte [esi + 0x40], 0
pop ecx
je 0x5a70d3
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5a7149
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x5a713e
mov eax, dword [esi + 8]
test eax, eax
je 0x5a70fb
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x5a713a
cmp eax, 2
je 0x5a713e
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5a70f0
cmp eax, 3
je 0x5a711f
cmp eax, 1
jne 0x5a70f0
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x5a70f0
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x5a70f0
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x5a7167
cmp eax, 0xcc
je 0x5a7167
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.005a6f80
pop esi
ret
Function at 0x5bdb08
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x5bdb3d
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x5bdb30
push eax
call fcn.005c21ca
push 2
call fcn.005c21b9
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.005d1d50
add esp, 0xc
pop edi
pop esi
ret

Function at 0x5c7a51
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x5c7ade
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.005d1a10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5c7a9e
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x5c7ac0
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x5c7b9c
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x5c7b06
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x5c7b11
xor eax, eax
jmp 0x5c7b5d
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x5c7b2e
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.005c9ca3
jmp 0x5c7b3e
cmp ecx, 2
jne 0x5c7b47
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.005c9c89
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.005d1a10
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x5c7b88
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x5c7b9c
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x5c7a5c
pop edi
pop ebx
leave
ret
Function at 0x5cc198
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.005d33a0
xor esi, esi
inc esi
cmp dword [0x655ac8], esi
pop ecx
jne 0x5cc1c0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x655ac4], esi
mov byte [0x655ac0], al
jne 0x5cc226
mov ecx, dword [0x657428]
test ecx, ecx
je 0x5cc207
mov eax, dword [0x657424]
sub eax, 4
cmp eax, ecx
jmp 0x5cc200
mov eax, dword [eax]
test eax, eax
je 0x5cc1f2
call eax
mov eax, dword [0x657424]
sub eax, 4
cmp eax, dword [0x657428]
mov dword [0x657424], eax
jae 0x5cc1ea
mov eax, 0x608048
mov esi, 0x608050
cmp eax, esi
mov edi, eax
jae 0x5cc226
mov eax, dword [edi]
test eax, eax
je 0x5cc21f
call eax
add edi, 4
cmp edi, esi
jb 0x5cc217
mov eax, 0x608054
mov esi, 0x60805c
cmp eax, esi
mov edi, eax
jae 0x5cc245
mov eax, dword [edi]
test eax, eax
je 0x5cc23e
call eax
add edi, 4
cmp edi, esi
jb 0x5cc236
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x5cc256
push 8
call fcn.005d330c
jmp 0x5cc268
push dword [ebp + 8]
mov dword [0x655ac8], 1
call fcn.005cc0f1
pop ecx
pop ebp
ret

Function at 0x5ccba1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x5ccbbe
call fcn.005ce9d8
mov dword [eax], 0x16
xor eax, eax
jmp 0x5ccc28
push esi
push 0x88
push 1
call fcn.005cff74
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5ccc13
push esi
call fcn.005d2c1f
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x5ccbf1
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x5ccafd
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x5ccc27
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.005cc393
test ebx, ebx
pop ecx
je 0x5ccc25
push ebx
call fcn.005ce9ea
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d146d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x5fcf58
call fcn.005d1988
mov edi, 0x94
mov eax, edi
call fcn.005cd640
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x655a88], ecx
mov eax, dword [esi + 4]
mov dword [0x655a94], eax
mov edx, dword [esi + 8]
mov dword [0x655a98], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x655a8c], esi
cmp ecx, 2
je 0x5d14cd
or esi, 0x8000
mov dword [0x655a8c], esi
shl eax, 8
add eax, edx
mov dword [0x655a90], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x5d1508
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5d1508
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x5d1520
cmp eax, 0x20b
je 0x5d150d
mov dword [ebp - 0x1c], esi
jmp 0x5d1534
cmp dword [ecx + 0x84], 0xe
jbe 0x5d1508
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x5d152e
cmp dword [ecx + 0x74], 0xe
jbe 0x5d1508
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.005d3473
pop ecx
test eax, eax
jne 0x5d1548
push 0x1c
call fcn.005d1449
pop ecx
call fcn.005d2e0e
test eax, eax
jne 0x5d1559
push 0x10
call fcn.005d1449
pop ecx
call fcn.005d33d1
mov dword [ebp - 4], esi
call fcn.005d7c21
test eax, eax
jge 0x5d1572
push 0x1b
call fcn.005d1424
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x6571e4], eax
call fcn.005df38d
mov dword [0x655b08], eax
call fcn.005df2eb
test eax, eax
jge 0x5d1598
push 8
call fcn.005d1424
pop ecx
call fcn.005df0b8
test eax, eax
jge 0x5d15a9
push 9
call fcn.005d1424
pop ecx
call fcn.005cc133
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x5d15bc
push eax
call fcn.005d1424
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.005df04f
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x5d15dd
movzx eax, word [ebp - 0x34]
jmp 0x5d15e0
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.004fe1f0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x5d15fe
push edi
call fcn.005cc26b
call fcn.005cc28d
jmp 0x5d1630
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.005d19c3
ret
Function at 0x5d7888
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x5d7a50
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x6560a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5d7a50
test cl, 0x48
je 0x5d78ee
mov al, byte [eax + 5]
cmp al, 0xa
je 0x5d78ee
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d7940
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x5d7928
call fcn.005ce9d8
mov dword [eax], 9
call fcn.005ce9e1
mov dword [eax], esi
jmp 0x5d7938
cmp eax, 0x6d
je 0x5d7a50
push eax
call fcn.005ce9ea
pop ecx
or eax, 0xffffffff
jmp 0x5d7a52
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x5d7a4b
test edx, edx
je 0x5d7963
cmp byte [ebx], 0xa
jne 0x5d7963
or al, 4
jmp 0x5d7965
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x5d7a45
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x5d7a35
cmp al, 0xd
je 0x5d7999
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x5d7a27
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x5d79b3
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x5d79ae
add dword [ebp + 0x10], 2
jmp 0x5d7a07
mov dword [ebp + 0x10], eax
jmp 0x5d7a23
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d79db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5d7a23
cmp dword [ebp - 0xc], 0
je 0x5d7a23
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5d79fc
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5d7a07
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5d7a26
cmp ebx, dword [ebp + 0xc]
jne 0x5d7a0c
cmp byte [ebp - 1], 0xa
jne 0x5d7a0c
mov byte [ebx], 0xa
jmp 0x5d7a26
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005e201a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5d7a27
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5d797d
jmp 0x5d7a45
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x5d7a45
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x5d7a52
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d7eba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x60b0f0]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x5d7ee3
xor eax, eax
jmp 0x5d8051
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x6560a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x5d7f16
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.005e201a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5d7fe8
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x5d8023
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x5d7f71
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5d7f62
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x5d7f45
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5d7fb1
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x5d7fba
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x5d7f36
jmp 0x5d7fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x5d804c
cmp dword [ebp - 8], edi
je 0x5d8023
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x5d8015
call fcn.005ce9d8
mov dword [eax], 9
call fcn.005ce9e1
mov dword [eax], esi
jmp 0x5d801e
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5d800a
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x5d7fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x5d7fbc
push dword [ebp - 8]
call fcn.005ce9ea
pop ecx
or eax, 0xffffffff
jmp 0x5d804f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5d8038
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x5d8038
xor eax, eax
jmp 0x5d804f
call fcn.005ce9d8
mov dword [eax], 0x1c
call fcn.005ce9e1
mov dword [eax], edi
jmp 0x5d801e
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.005d1690
leave
ret
Function at 0x5debbc
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x5dec27
push 0x3d
push dword [ebp + 8]
call fcn.005e2a96
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x5dec27
cmp dword [ebp + 8], esi
je 0x5dec27
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x655aa8]
cmp eax, dword [0x655aac]
jne 0x5dec0d
mov edi, eax
call fcn.005deb5b
mov dword [0x655aa8], eax
cmp eax, ebx
jne 0x5dec66
cmp dword [ebp + 0xc], ebx
je 0x5dec2f
cmp dword [0x655ab0], ebx
je 0x5dec2f
call fcn.005d894c
test eax, eax
je 0x5dec66
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x5ded6a
push 4
call fcn.005cc381
cmp eax, ebx
pop ecx
mov dword [0x655aa8], eax
je 0x5dec27
mov dword [eax], ebx
cmp dword [0x655ab0], ebx
jne 0x5dec66
push 4
call fcn.005cc381
cmp eax, ebx
pop ecx
mov dword [0x655ab0], eax
je 0x5dec27
mov dword [eax], ebx
mov ebx, dword [0x655aa8]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.005deb0e
mov edi, eax
test edi, edi
pop ecx
jl 0x5decbf
cmp dword [ebx], 0
je 0x5decbf
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.005cc393
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x5deca7
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x5decf5
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x5dec9e
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.005ce1f4
test eax, eax
pop ecx
pop ecx
je 0x5decf5
jmp 0x5decf0
cmp dword [ebp - 4], 0
jne 0x5ded63
test edi, edi
jge 0x5deccf
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.005ce1f4
test eax, eax
pop ecx
pop ecx
je 0x5dec27
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x655aa8], eax
cmp dword [ebp + 0xc], 0
je 0x5ded4c
push dword [ebp + 8]
call fcn.005d2220
inc eax
inc eax
push eax
call fcn.005cc381
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x5ded4c
push dword [ebp + 8]
push esi
call fcn.005d2410
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x5ded45
or dword [ebp - 8], 0xffffffff
push esi
call fcn.005cc393
pop ecx
cmp dword [ebp - 4], 0
je 0x5ded5b
push dword [ebp + 8]
call fcn.005cc393
pop ecx
mov eax, dword [ebp - 8]
jmp 0x5dec2a
push esi
call fcn.005cc393
pop ecx
xor eax, eax
jmp 0x5dec2a
Function at 0x5dedce
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.005cd640
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5dee63
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x655a88]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x5dee63
cmp eax, 1
je 0x5dee7b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5dee63
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x5dee38
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x5dee5f
xor eax, eax
inc eax
jmp 0x5dee97
cmp esi, ebx
jae 0x5dee67
xor eax, eax
jmp 0x5dee97
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x655a88]
jmp 0x5dee7d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret