joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56a908
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
push ecx
mov eax, dword [edi + 0x1ac]
or esi, 0xffffffff
mov ebx, dword [edi]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x56a960
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push dword [ebp - 0x1c]
push edi
call fcn.0054f8fc
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x56a982
push str.Error_accept__ing_server_connect
push ebx
call fcn.0054ef91
pop ecx
pop ecx
push 0x1e
pop eax
jmp 0x56a9ed
push str.Connection_accepted_from_server_n
push ebx
call fcn.0054f067
and dword [edi + 0x284], 0xfffff7ff
push 1
push esi
mov dword [edi + 0x1ac], esi
call fcn.005734d2
add esp, 0x10
mov byte [edi + 0x1b9], 1
cmp dword [ebx + 0x610], 0
je 0x56a9eb
push 1
push ebx
call fcn.0054296b
push 1
push esi
push dword [ebx + 0x614]
call dword [ebx + 0x610]
push 0
push ebx
mov esi, eax
call fcn.0054296b
add esp, 0x1c
test esi, esi
je 0x56a9eb
push edi
call fcn.0056ad8b
pop ecx
push 0x2a
jmp 0x56a97f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2233
mov esp, ebp
pop ebp
ret

Function at 0x56c8bf
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x56c8eb
push str.Couldnt_set_desired_mode
push edx
call fcn.0054ef91
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x56c93f
cmp ecx, 0xc8
je 0x56c902
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.0054f067
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x56c913
push edi
call fcn.0056c66c
pop ecx
jmp 0x56c93b
cmp eax, 0x14
jne 0x56c920
push edi
call fcn.0056b818
jmp 0x56c910
cmp eax, 0x15
jne 0x56c929
push 0xd
jmp 0x56c930
cmp eax, 0x16
jne 0x56c93d
push 0xe
push 1
push edi
call fcn.0056c267
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x576e41
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x576e51
sub esi, ecx
cmp esi, 0x7fffffff
jbe 0x576e6a
push 0x1b
pop eax
jmp 0x576f30
push edi
test esi, esi
je 0x576e7b
lea eax, [esi + esi]
push eax
call dword [0x6672b4]
jmp 0x576e86
push 0x61e4f8
call dword [0x6672c0]
mov edi, eax
pop ecx
test edi, edi
jne 0x576e95
push 0x1b
pop eax
jmp 0x576f2f
xor edx, edx
mov ecx, edx
test esi, esi
je 0x576eac
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], dl
inc ecx
cmp ecx, esi
jb 0x576e9d
push 0xf0000000
push 1
push edx
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x576f1d
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x576f12
push 0
lea eax, [esi + esi]
mov dword [ebp - 0xc], 0x10
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebx + 0x10], 0
push edi
mov byte [ebx + 0x14], 0
call dword [0x6672b8]
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x576f36
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x64106c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push 0xf0000000
inc ebx
mov dword [ebp - 0x28], eax
push ebx
push 0
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 8
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x576f7a
xor al, al
jmp 0x57700c
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.0057701c
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.00579f38
add esp, 0x10
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop edi
test eax, eax
jne 0x576fd3
xor bl, bl
jmp 0x576fff
mov ecx, dword [ebp + 8]
push dword [ebp - 0x1c]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push esi
xor eax, eax
push eax
push eax
push eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004c2233
mov esp, ebp
pop ebp
ret
Function at 0x57af8d
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x6672b4]
mov edi, eax
pop ecx
test edi, edi
je 0x57b079
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x57aff6
push ecx
call dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call dword [esi + 4]
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
call dword [esi + 8]
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x57affc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
call dword [esi]
push dword [edi + 8]
call dword [esi]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
pop ecx
test eax, eax
je 0x57b071
mov dword [ebp - 8], eax
mov ebx, eax
mov eax, dword [ebp - 4]
push 1
mov al, byte [eax]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
call dword [esi + 4]
mov ecx, dword [ebp - 4]
push 1
mov al, byte [ecx]
xor al, 0x5c
inc ecx
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov dword [ebp - 4], ecx
call dword [esi + 4]
add esp, 0x18
sub ebx, 1
jne 0x57b016
mov ebx, dword [ebp - 8]
jmp 0x57b071
push 1
push 0x60d787
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x60d788
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x57b053
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x597771
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
cmp byte [edi + 0xe5], 2
jne 0x5977f4
push dword [edi + 0x14]
push dword [edi + 0x10]
push str.SELECT_1_FROM__Q.sqlite_master_WHERE_tbl_name_q_stat
call fcn.005811fc
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x5977f1
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 8], esi
push ecx
push esi
push 1
push 0xffffffffffffffff
push eax
push dword [edi + 0xc]
call fcn.005b5c34
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x5977e6
push ebx
push dword [ebp + 8]
call fcn.00583b80
push dword [ebp + 8]
lea ebx, [eax - 0x64]
neg ebx
sbb ebx, ebx
inc ebx
call fcn.0057b5af
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5977e5
mov byte [edi + 0xe5], bl
pop ebx
push dword [ebp - 4]
call fcn.0058143e
pop ecx
jmp 0x5977f4
push 7
pop esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x597c35
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov edi, dword [ebx]
mov eax, edi
mov ecx, dword [ebx + 4]
or eax, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], ecx
je 0x597d9c
mov eax, edi
xor esi, esi
and eax, 1
mov dword [ebp - 0xc], esi
or eax, esi
jne 0x597c89
mov ebx, ecx
inc esi
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x597c66
mov dword [ebp - 0xc], esi
and dword [ebp - 8], 0
xor edx, edx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
dec eax
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, dword [ebp - 4]
or edx, ecx
jne 0x597cda
mov ebx, dword [ebp - 4]
mov esi, eax
inc dword [ebp - 8]
xor edx, edx
dec esi
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, edi
and ecx, ebx
or edx, ecx
je 0x597cb4
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 8]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x597d9c
mov eax, dword [ebp + 8]
and dword [ebp - 8], 0
mov eax, dword [eax + 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push eax
call fcn.005b14a5
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x597d9e
mov edi, dword [ebp - 0x14]
add edi, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 8], edi
jge 0x597d5a
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call dword [ebx + 0x14]
mov esi, eax
add esp, 0x18
test esi, esi
je 0x597d27
push dword [ebp - 0xc]
mov eax, ebx
call dword [eax + 0x10]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp + 0x20]
pop ecx
test esi, esi
je 0x597d76
cmp esi, 0x65
je 0x597d76
mov eax, esi
jmp 0x597d9e
xor ecx, ecx
cmp esi, 0x65
sete cl
sub ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 8]
test ecx, ecx
jle 0x597d9c
mov esi, dword [ebp + 0x1c]
mov eax, edi
mov edx, dword [ebp - 4]
add dword [esi], ecx
call fcn.0053cb50
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a74a5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
movsx edx, word [ebx + 0x4c]
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edx
mov ecx, dword [ebx + edx*4 + 0x78]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov ax, word [ebx + edx*2 + 0x4e]
cmp ax, word [ecx + 0x12]
jae 0x5a767d
cmp byte [ebx + 0x49], 1
jne 0x5a767d
mov esi, dword [ebx + edx*4 + 0x78]
movzx ecx, ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x40]
movzx edi, byte [eax + ecx*2]
movzx eax, byte [eax + ecx*2 + 1]
shl edi, 8
or edi, eax
movzx eax, word [esi + 0x14]
and edi, eax
add edi, dword [esi + 0x38]
cmp byte [esi + 5], 0
jne 0x5a7525
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
call fcn.005a87d8
pop ecx
pop ecx
test eax, eax
jne 0x5a7680
push ebx
push dword [ebx + 0x3c]
push dword [ebp - 0xc]
call fcn.005a30e7
add esp, 0xc
test eax, eax
jne 0x5a7680
cmp dword [ebx + 0x10], eax
jne 0x5a7553
push eax
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebp - 4]
call fcn.0059ae83
add esp, 0x10
push dword [esi + 0x44]
call fcn.005b7f31
pop ecx
test eax, eax
jne 0x5a7680
lea eax, [ebp - 4]
push eax
push edi
push esi
call fcn.005886ab
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0x10]
push esi
call fcn.0058c255
mov eax, dword [ebp - 8]
add esp, 0x1c
test eax, eax
jne 0x5a7680
cmp byte [esi + 5], al
jne 0x5a762c
movsx eax, word [ebx + 0x4c]
mov edx, dword [ebx + eax*4 + 0x78]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], edx
movzx ecx, word [edx + 0x12]
mov eax, dword [ebx + eax*4 + 0x7c]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x18], eax
mov eax, dword [edx + 0x40]
movzx ebx, byte [eax + ecx*2 - 2]
movzx eax, byte [eax + ecx*2 - 1]
shl ebx, 8
or ebx, eax
movzx eax, word [edx + 0x14]
and ebx, eax
add ebx, dword [edx + 0x38]
push ebx
push edx
call fcn.00587c74
movzx edi, ax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x50]
mov eax, dword [ebp - 4]
push dword [eax + 0x44]
call fcn.005b7f31
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
lea eax, [edi + 4]
push esi
push eax
lea eax, [ebx - 4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x1c]
call fcn.0059ac3e
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push edi
movzx eax, word [ecx + 0x12]
dec eax
push eax
push ecx
call fcn.0058c255
mov eax, dword [ebp - 8]
add esp, 0x38
test eax, eax
jne 0x5a7680
mov ebx, dword [ebp + 8]
push ebx
call fcn.00585d1f
mov edi, eax
pop ecx
test edi, edi
jne 0x5a7679
movsx ecx, word [ebx + 0x4c]
mov esi, dword [ebp - 0x14]
cmp ecx, esi
jle 0x5a7672
movzx ecx, word [ebx + 0x4c]
movsx eax, cx
mov edx, dword [ebx + eax*4 + 0x78]
lea eax, [ecx - 1]
push edx
mov word [ebx + 0x4c], ax
call fcn.005a1ca7
movsx eax, word [ebx + 0x4c]
pop ecx
cmp eax, esi
jg 0x5a7644
push ebx
call fcn.00585d1f
mov edi, eax
pop ecx
test edi, edi
jne 0x5a7679
push ebx
call fcn.0059c50c
pop ecx
mov eax, edi
jmp 0x5a7680
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5a784e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x28]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp + 0x28], ebx
cmp byte [esi + 0x49], 4
mov eax, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
jne 0x5a787d
mov eax, dword [esi + 0x44]
jmp 0x5a7a03
push esi
push dword [esi + 0x3c]
push eax
call fcn.005a30e7
add esp, 0xc
test eax, eax
jne 0x5a7a03
xor edx, edx
push edi
mov edi, dword [ebp + 0x14]
cmp dword [esi + 0x10], edx
jne 0x5a78da
push edx
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0059ae83
add esp, 0x10
test byte [esi + 0x48], 2
je 0x5a78da
xor edx, edx
cmp edi, edx
jl 0x5a78da
jg 0x5a78c0
cmp dword [ebp + 0x10], edx
jbe 0x5a78da
mov eax, dword [ebp + 0x10]
mov ecx, edi
sub eax, 1
sbb ecx, edx
cmp dword [esi + 0x18], eax
jne 0x5a78da
cmp dword [esi + 0x1c], ecx
jne 0x5a78da
or ebx, 0xffffffff
mov dword [ebp + 0x28], ebx
test ebx, ebx
jne 0x5a7900
lea eax, [ebp + 0x28]
push eax
push dword [ebp + 0x24]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0058765a
add esp, 0x18
test eax, eax
jne 0x5a7a02
mov ebx, dword [ebp + 0x28]
movsx eax, word [esi + 0x4c]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
mov edi, dword [esi + eax*4 + 0x78]
push dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov eax, dword [eax + 0x50]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
push eax
push edi
call fcn.0058dcde
mov ecx, eax
add esp, 0x24
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x5a7a00
movsx ecx, word [esi + 0x4c]
movzx edx, word [esi + ecx*2 + 0x4e]
mov eax, edx
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x5a7a09
push dword [edi + 0x44]
call fcn.005b7f31
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x5a7a00
mov eax, dword [edi + 0x40]
mov ebx, dword [ebp - 4]
movzx ecx, byte [eax + ebx*2]
movzx eax, byte [eax + ebx*2 + 1]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x14]
and ecx, eax
add ecx, dword [edi + 0x38]
cmp byte [edi + 5], 0
jne 0x5a7991
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov dword [edx], eax
lea eax, [ebp + 0x28]
push eax
push ecx
push edi
call fcn.005886ab
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
movzx eax, word [ebp + 0x28]
push eax
push ebx
push edi
call fcn.0058c255
mov ecx, dword [ebp + 8]
add esp, 0x1c
test ecx, ecx
jne 0x5a7a00
mov eax, ebx
xor ebx, ebx
lea ecx, [ebp + 8]
push ecx
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
push edi
call fcn.0059ac3e
mov ecx, dword [ebp + 8]
xor eax, eax
add esp, 0x1c
mov word [esi + 0x2c], ax
test ecx, ecx
jne 0x5a7a00
cmp byte [edi + 1], al
je 0x5a7a00
and byte [esi + 0x48], 0xfd
push esi
call fcn.00585d1f
pop ecx
mov ecx, eax
movsx eax, word [esi + 0x4c]
mov eax, dword [esi + eax*4 + 0x78]
mov byte [eax + 1], bl
mov byte [esi + 0x49], bl
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jns 0x5a79bb
xor ebx, ebx
cmp word [edi + 0x12], bx
jbe 0x5a79bd
lea eax, [edx + 1]
mov word [esi + ecx*2 + 0x4e], ax
movzx eax, ax
jmp 0x5a79bd
Function at 0x5ae366
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x5ae37b
xor eax, eax
jmp 0x5ae461
push edi
push 0
push 8
push dword [ebp + 8]
call fcn.005aa97e
mov edi, eax
add esp, 0xc
mov dword [ebp - 0xc], edi
test edi, edi
je 0x5ae460
test byte [ebp + 0x10], 1
mov eax, dword [esi]
mov dword [edi], eax
jne 0x5ae3af
xor eax, eax
inc eax
cmp dword [esi], eax
jle 0x5ae3af
add eax, eax
cmp eax, dword [esi]
jl 0x5ae3a9
imul eax, eax, 0x18
push ebx
push 0
push eax
push dword [ebp + 8]
call fcn.005aa97e
mov ebx, eax
add esp, 0xc
mov dword [edi + 4], ebx
test ebx, ebx
jne 0x5ae3dc
push edi
push dword [ebp + 8]
call fcn.005aa92e
pop ecx
pop ecx
xor eax, eax
jmp 0x5ae45f
and dword [ebp - 4], 0
cmp dword [esi], 0
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
jle 0x5ae45d
mov edi, dword [ebp - 8]
lea eax, [ebx + 0x10]
mov dword [ebp + 0xc], eax
sub ebx, edi
push 0
push dword [ebp + 0x10]
push dword [edi]
push dword [ebp + 8]
call fcn.0058d727
mov dword [ebx + edi], eax
push dword [edi + 4]
push dword [ebp + 8]
call fcn.005aab8d
mov ecx, dword [ebp + 0xc]
mov dword [ecx - 0xc], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.005aab8d
mov ecx, dword [ebp + 0xc]
lea edi, [edi + 0x18]
add esp, 0x20
mov dword [ecx - 8], eax
mov al, byte [edi - 0xc]
and dword [ecx], 0xfffffffe
mov byte [ecx - 4], al
mov eax, dword [edi - 8]
xor eax, dword [ecx]
and eax, 2
xor dword [ecx], eax
mov eax, dword [edi - 4]
mov dword [ecx + 4], eax
add ecx, 0x18
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], eax
cmp eax, dword [esi]
jl 0x5ae3f6
mov edi, dword [ebp - 0xc]
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10018500
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x100fd640]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp word [0x100fddb8], 0
push ebx
jne 0x10018722
push esi
push 0x11c
lea eax, [esp + 0xc]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
push str._I__OS_Version_
push 0
push 3
mov esi, eax
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0xc
test esi, esi
pop esi
je 0x10018706
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
cmp eax, 2
jne 0x100186f1
cmp ecx, 4
jbe 0x100186f1
mov eax, dword [esp + 0xc]
mov ebx, 1
cmp ecx, 6
jb 0x10018628
test eax, eax
jne 0x100185de
cmp byte [esp + 0x11e], bl
jne 0x100185bc
push str.OS_VISTA_n
push eax
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0xc
mov word [0x100fddb8], bx
jmp 0x10018722
push str.OS_WINSERV_2008_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
mov edx, 2
add esp, 0xc
mov word [0x100fddb8], dx
jmp 0x10018722
cmp eax, ebx
jb 0x10018628
cmp byte [esp + 0x11e], bl
jne 0x10018606
push str.OS_WINDOWS7_or_newer_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0xc
mov eax, 0x20
jmp 0x1001871c
push str.OS_WINSERV_2008R2_or_newer_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
mov ecx, 0x40
add esp, 0xc
mov word [0x100fddb8], cx
jmp 0x10018722
cmp ecx, 5
jne 0x100186d0
cmp eax, 2
jne 0x1001867c
cmp byte [esp + 0x11e], bl
jne 0x10018661
push str.OS_WINXP_64_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
mov edx, 8
add esp, 0xc
mov word [0x100fddb8], dx
jmp 0x10018722
push str.OS_WINSERV_2003_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0xc
mov eax, 0x10
jmp 0x1001871c
cmp eax, ebx
jne 0x100186d0
push str.OS_WINXP
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0xc
test dword [esp + 0x11c], 0x200
mov ecx, 4
mov word [0x100fddb8], cx
je 0x100186bd
push str.Home_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0xc
jmp 0x10018722
push str.Pro_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0xc
jmp 0x10018722
push eax
push ecx
push str.OS_UNKNOWN:_dwMajorVersion_d_dwMinorVersion_d_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
mov edx, 0xff80
add esp, 0x14
mov word [0x100fddb8], dx
jmp 0x10018722
push ecx
push eax
push str.OS_UNKNOWN:_dwPlatformId_d_dwMajorVersion_d_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0x14
jmp 0x10018717
push str.OS_UNKNOWN:_GetVersionEx_failed_n
push 0
push 3
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
add esp, 0xc
mov eax, 0xff80
mov word [0x100fddb8], ax
movzx ecx, word [esp + 0x128]
movzx eax, word [0x100fddb8]
and eax, ecx
mov ecx, dword [esp + 0x120]
pop ebx
xor ecx, esp
call fcn.100b4c22
add esp, 0x120
ret