joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001b49
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor eax, eax
mov word [ebp - 8], ax
jmp 0x10001b63
mov ax, word [ebp - 8]
add ax, 1
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
cmp eax, 0x40
jge 0x10001b87
movzx eax, word [ebp - 8]
xor edx, edx
div dword [ebp + 0xc]
movzx eax, word [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dl, byte [esi + edx]
mov byte [ecx + eax], dl
jmp 0x10001b57
xor eax, eax
mov word [ebp - 8], ax
jmp 0x10001b9b
mov ax, word [ebp - 8]
add ax, 1
mov word [ebp - 8], ax
movzx eax, word [ebp - 8]
cmp eax, 0x100
jge 0x10001c32
movzx eax, word [ebp - 8]
and eax, 0x8000003f
jns 0x10001bba
dec eax
or eax, 0xffffffc0
inc eax
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx + eax]
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
and eax, 0xff
movzx eax, byte [eax + 0x10059bd0]
and eax, 0xff
movzx eax, byte [eax + 0x10059bd0]
and eax, 0xff
movzx ecx, word [ebp - 8]
movzx ecx, byte [ecx + 0x10059ad0]
and ecx, 0xff
movzx ecx, byte [ecx + 0x10059ad0]
and ecx, 0xff
xor eax, ecx
mov byte [ebp - 2], al
movzx eax, byte [ebp - 2]
and eax, 0xff
movzx ecx, word [ebp - 8]
and ecx, 0x8000003f
jns 0x10001c21
dec ecx
or ecx, 0xffffffc0
inc ecx
mov edx, dword [ebp + 0x10]
mov al, byte [eax + 0x10059ad0]
mov byte [edx + ecx], al
jmp 0x10001b8f
pop esi
leave
ret
Function at 0x1000505f
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c8c
call fcn.100416e0
mov eax, dword [0x1005900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
jmp 0x1000508b
jmp 0x1000509d
mov dword [ebp - 0x2c8c], 0x2880
lea eax, [ebp - 0x2c8c]
push eax
lea eax, [ebp - 0x2c84]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
je 0x100050c6
xor al, al
jmp 0x10005254
lea eax, [ebp - 0x2c84]
mov dword [ebp - 0x2c88], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
test eax, eax
jne 0x10005178
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
test eax, eax
jne 0x10005178
xor eax, eax
inc eax
shl eax, 1
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
test eax, eax
jne 0x10005178
xor eax, eax
inc eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
test eax, eax
jne 0x10005178
xor eax, eax
inc eax
shl eax, 2
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
test eax, eax
jne 0x10005178
xor eax, eax
inc eax
imul eax, eax, 5
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
test eax, eax
jne 0x10005178
mov eax, dword [ebp - 0x2c88]
mov eax, dword [eax]
mov dword [ebp - 0x2c88], eax
jmp 0x100050d2
xor eax, eax
inc eax
imul eax, eax, 5
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
push eax
xor eax, eax
inc eax
shl eax, 2
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
push eax
xor eax, eax
inc eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
push eax
xor eax, eax
inc eax
shl eax, 1
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
push eax
xor eax, eax
inc eax
shl eax, 0
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
push eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x2c88]
movzx eax, byte [ecx + eax + 0x194]
push eax
push str._02X_02X_02X_02X_02X_02X
push 0x3e8
lea eax, [ebp - 0x404]
push eax
call fcn.10001cd8
add esp, 0x24
push 0x3e8
lea eax, [ebp - 0x404]
push eax
push 0x3e8
push dword [ebp + 8]
push 0
call fcn.1002d6d9
add esp, 0x14
mov al, 1
jmp 0x10005254
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e09e
leave
ret
Function at 0x10008406
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
xor eax, eax
inc eax
je 0x10008517
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x10008437
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.10009917
jmp 0x10008528
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.1000c032
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x100084c8
jg 0x1000845f
cmp dword [ebp + 0xc], 0
jbe 0x100084c8
cmp dword [ebp - 8], 0
jl 0x100084c8
jg 0x1000846d
cmp dword [ebp - 0xc], 0
jbe 0x100084c8
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x1000848b
jl 0x1000847f
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jae 0x1000848b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.1000c221
push eax
call fcn.10001f50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
call fcn.1000c0c5
cmp dword [ebp + 0x10], 0
jl 0x10008507
jg 0x100084d6
cmp dword [ebp + 0xc], 0
jbe 0x10008507
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x10008507
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.1002cf01
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x10008528
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.10009917
leave
ret 0xc
Function at 0x1000852c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
xor eax, eax
inc eax
je 0x10008645
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x1000855d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.10009a23
jmp 0x10008656
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.1000c0f6
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x100085ee
jg 0x10008585
cmp dword [ebp + 0xc], 0
jbe 0x100085ee
cmp dword [ebp - 8], 0
jl 0x100085ee
jg 0x10008593
cmp dword [ebp - 0xc], 0
jbe 0x100085ee
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jg 0x100085b1
jl 0x100085a5
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jae 0x100085b1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
call fcn.1000c232
push eax
push dword [ebp + 8]
call fcn.10001f50
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
call fcn.1000c1d7
cmp dword [ebp + 0x10], 0
jl 0x10008635
jg 0x100085fc
cmp dword [ebp + 0xc], 0
jbe 0x10008635
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x10008635
mov ecx, dword [ebp - 4]
call fcn.1000b8f8
mov eax, dword [ebp - 4]
push dword [eax + 0x4c]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.1002d940
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x10008656
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.10009a23
leave
ret 0xc
Function at 0x10008a62
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x1005900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.100020fe
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.100020a0
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10008aa4
lea eax, [ebp + 8]
push eax
call fcn.100020c2
pop ecx
jmp 0x10008c17
mov ecx, dword [ebp - 0x2c]
call fcn.1000c221
test eax, eax
je 0x10008ae4
mov ecx, dword [ebp - 0x2c]
call fcn.1000c221
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.1000c18f
cmp esi, eax
jae 0x10008ae4
lea eax, [ebp + 8]
push eax
call fcn.1000208b
pop ecx
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.1000c05c
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x10008c17
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x4c], 0
jne 0x10008af7
call fcn.100020fe
jmp 0x10008c17
mov ecx, dword [ebp - 0x2c]
call fcn.1000b8f8
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x10008b42
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x4c]
lea eax, [ebp + 8]
push eax
call fcn.1000208b
pop ecx
movzx eax, al
push eax
call fcn.10003d32
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10008b32
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x10008b3a
call fcn.100020fe
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x10008c17
mov dword [ebp - 0x50], 0x20
lea eax, [ebp + 8]
push eax
call fcn.1000208b
pop ecx
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x2f]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.1000a0f9
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x10008c12
cmp dword [ebp - 0x34], 1
jle 0x10008b9b
cmp dword [ebp - 0x34], 3
je 0x10008be6
jmp 0x10008c12
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x10008bcb
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x4c]
push dword [ebp - 0x38]
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1002cf01
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10008bcb
call fcn.100020fe
jmp 0x10008c17
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x30]
cmp dword [ebp - 0x4c], eax
je 0x10008bdf
mov eax, dword [ebp + 8]
jmp 0x10008c17
call fcn.100020fe
jmp 0x10008c17
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x4c]
push dword [ebp - 0x30]
call fcn.10003d32
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x10008c05
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
jmp 0x10008c0d
call fcn.100020fe
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x10008c17
call fcn.100020fe
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e09e
leave
ret 4
Function at 0x1000b967
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1005900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x1000b98e
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x3d]
test eax, eax
jne 0x1000b995
mov al, 1
jmp 0x1000ba61
call fcn.100020fe
push eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
call dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
call fcn.100020fe
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100020a0
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x1000b9ce
xor al, al
jmp 0x1000ba61
mov dword [ebp - 0x48], 0x20
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x40
push eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.1000c6a2
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x1000ba0a
cmp dword [ebp - 0x30], 1
je 0x1000ba11
cmp dword [ebp - 0x30], 3
je 0x1000ba5b
jmp 0x1000ba5f
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x1000ba3e
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x4c]
push dword [ebp - 0x34]
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.1002cf01
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x1000ba3e
xor al, al
jmp 0x1000ba61
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + 0x3d]
test eax, eax
jne 0x1000ba52
mov dword [ebp - 0x38], 1
jmp 0x1000ba56
and dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x1000ba61
mov al, 1
jmp 0x1000ba61
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001e09e
leave
ret

Function at 0x10017823
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
inc eax
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + 0xc]
dec ecx
shl eax, cl
mov word [ebp - 8], ax
jmp 0x10017856
mov ax, word [ebp - 8]
shr ax, 1
mov word [ebp - 8], ax
mov ax, word [ebp - 4]
shl ax, 1
mov word [ebp - 4], ax
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 4]
cmp eax, ecx
jle 0x100178a6
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 4]
or eax, ecx
mov word [ebp - 0x10], ax
movzx eax, word [ebp + 8]
movzx ecx, word [ebp - 0x10]
and eax, ecx
mov word [ebp - 0xc], ax
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 8]
cmp eax, ecx
je 0x10017896
movzx eax, word [ebp - 0xc]
movzx ecx, word [ebp - 4]
cmp eax, ecx
jne 0x100178a4
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp + 8]
xor ecx, eax
mov word [ebp + 8], cx
jmp 0x10017840
mov ax, word [ebp + 8]
leave
ret
Function at 0x1001de58
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
and dword [ebp - 8], 0
jmp 0x1001de6b
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x14]
jae 0x1001df5d
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + 1]
and ecx, 0xff
mov edx, dword [ebp + 8]
movzx ecx, byte [edx + ecx + 2]
add eax, ecx
and eax, 0xff
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov al, byte [edx + eax + 2]
mov byte [ecx], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
and eax, 0xff
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 2]
and eax, 0xff
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + eax + 2]
inc eax
and eax, 0xff
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax + 2]
mov byte [ebp - 2], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 1]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax + 2]
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
and eax, 0xff
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + 1]
and ecx, 0xff
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 8]
mov al, byte [esi + eax + 2]
mov byte [edx + ecx + 2], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov dl, byte [ebp - 1]
mov byte [ecx + eax + 2], dl
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 1]
inc eax
and eax, 0xff
mov ecx, dword [ebp + 8]
mov byte [ecx + 1], al
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax]
movzx ecx, byte [ebp - 2]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
jmp 0x1001de64
pop esi
leave
ret
Function at 0x1002054f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1005900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x10020574
xor eax, eax
jmp 0x100205d0
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x100205a1
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x100205a1
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x10020655
cmp dword [edi + 0x4c], 0
je 0x100205ca
mov ecx, edi
call fcn.1001ff99
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x100205e0
push dword [edi + 0x4c]
push ebx
call fcn.1001f788
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x100205cf
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1001e09e
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x10045178]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x100205ca
cmp eax, 1
jle 0x10020628
cmp eax, 3
jne 0x100205ca
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x100205bc
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x10020645
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.1002cf01
add esp, 0x10
cmp esi, eax
jne 0x100205ca
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x100205ca
mov ax, bx
jmp 0x100205cf

Function at 0x10035b47
Capabilities:
Read file on windows

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

Function at 0x10035b52
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003598b
Function at 0x401020
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x138
mov eax, dword [0x40600c]
xor eax, esp
mov dword [esp + 0x134], eax
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4010b5
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop word [eax + eax]
lea eax, [esp + 0x34]
mov ecx, str.gta_sa.exe
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4010a0
test dl, dl
je 0x40109c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4010a0
add ecx, 2
add eax, 2
test dl, dl
jne 0x401080
xor eax, eax
jmp 0x4010a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x40111a
lea eax, [esp + 0x10]
push eax
push esi
call edi
test eax, eax
jne 0x401070
xor eax, eax
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
mov byte [esp + 0x13], 0
push 1
lea eax, [esp + 0x17]
push eax
push 0x5e4280
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp byte [esp + 0xf], 0xe9
mov eax, 0x406028
mov ecx, 0x59c228
mov dword [0x72f434], esi
cmovne ecx, eax
mov dword [0x72f430], ecx
call fcn.00401670
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
xor ecx, esp
call fcn.004024d6
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
jmp 0x4010b7
Function at 0x402f20
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402f5f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402f5f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402f5f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402f5f
cmp dword [ecx + 0x74], 0xe
jbe 0x402f5f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x101134eb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x101ba0ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov esi, 0x101bd460
cmp dword [esi], eax
je 0x10113524
add esi, 0x50
cmp esi, 0x101bdcd0
jl 0x1011350e
xor al, al
jmp 0x101135ee
push 0x190
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.1012bcf0
add edi, 4
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x10113545
mov edi, dword [edi]
lea eax, [esi + 0x38]
cmp dword [eax + 0x14], 8
jb 0x10113550
mov eax, dword [eax]
lea ecx, [esi + 0x20]
cmp dword [ecx + 0x14], 8
jb 0x1011355b
mov ecx, dword [ecx]
lea edx, [esi + 8]
cmp dword [edx + 0x14], 8
jb 0x10113566
mov edx, dword [edx]
push edi
push 0xc8
lea edi, [ebp - 0x194]
push edi
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x194], 0
jne 0x1011358a
xor eax, eax
jmp 0x10113597
lea eax, [ebp - 0x194]
push eax
call fcn.10143d94
pop ecx
push eax
lea eax, [ebp - 0x194]
lea edi, [ebx + 8]
push eax
mov ecx, edi
call fcn.10041f80
mov eax, dword [esi + 4]
mov dword [ebx], eax
cmp dword [esi + 4], 1
jne 0x101135ca
cmp dword [edi + 0x14], 8
jb 0x101135be
mov eax, dword [edi]
jmp 0x101135c0
mov eax, edi
push eax
call fcn.101335ad
pop ecx
mov dword [ebx + 4], eax
cmp dword [esi + 4], 3
jne 0x101135ec
cmp dword [edi + 0x14], 8
jb 0x101135d8
mov edi, dword [edi]
push edi
call fcn.101335ad
pop ecx
xor ecx, ecx
mov dword [ebx + 4], eax
test eax, eax
setg cl
mov dword [ebx + 0x20], ecx
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1010a7f2
mov esp, ebp
pop ebp
ret 8

Function at 0x101146b3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1014ec50
Capabilities:
Read file on windows

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

Function at 0x10151511
Capabilities:
Set environment variable

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx