joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007ec90
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x10279008]
mov edi, eax
add esp, 8
test edi, edi
je 0x1007ec58
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x1007ec70
cmp esi, ebx
je 0x1007ec70
cmp esi, 0x8000
ja 0x1007ec70
cmp esi, ebx
jb 0x1007ec69
push esi
push edi
call dword [0x10279008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1007ec20
push ebp
call dword [0x10279004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x10279004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x1007ec00

Function at 0x1007f670
Capabilities:
Resolve dns

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x1c], ecx
je 0x1007f714
cmp word [ecx + 8], 2
push ebx
push ebp
push edi
jne 0x1007f6e5
cmp word [ecx + 0xa], 4
jne 0x1007f6e5
mov edi, dword [ecx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x1007f6e5
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
lea esp, [esp]
mov edx, dword [eax]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebx
push ebp
call fcn.1007f600
test eax, eax
mov dword [esi], eax
je 0x1007f708
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x1007f6c0
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx]
mov edx, dword [esp + 0x24]
push 0x400
push ecx
push 0x401
push edx
call fcn.101b4a26
add esp, 0x10
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
ret 0x18
pop edi
pop ebp
pop ebx
mov eax, 8
pop esi
ret 0x18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x1007f724.11001
jmp dword [eax*4 + 0x1007f748]
mov eax, 0x2af9
pop esi
ret 0x18
mov eax, 0x2afa
pop esi
ret 0x18
mov eax, 0x2afb
pop esi
ret 0x18
Function at 0x1007ff80
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x22c], eax
cmp dword [0x102830c4], 0
mov dword [esp], str.getaddrinfo
mov dword [esp + 4], 0x1007f9d0
mov dword [esp + 8], str.getnameinfo
mov dword [esp + 0xc], 0x1007fcc0
mov dword [esp + 0x10], str.freeaddrinfo
mov dword [esp + 0x14], fcn.1007f980
je 0x1007fff2
movzx eax, word [esp + 0x234]
mov eax, dword [eax*8 + 0x10279114]
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.101b40e2
add esp, 0x230
ret 4
push 0x104
lea ecx, [esp + 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100800ef
push ebx
push ebp
push esi
push edi
lea edx, [esp + 0x134]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.101b79db
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.101b7a43
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1008006d
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x100800b4
push esi
call ebp
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.101b79db
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.101b7a43
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x100800eb
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x1008011f
xor edi, edi
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x1008011f
add edi, 1
cmp edi, 3
jl 0x100800b6
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x10279114], edx
mov dword [0x1027911c], eax
mov dword [fcn.1007f980], ecx
pop edi
pop esi
pop ebp
pop ebx
movzx edx, word [esp + 0x234]
mov ecx, dword [esp + 0x22c]
mov eax, dword [edx*8 + 0x10279114]
xor ecx, esp
mov dword [0x102830c4], 1
call fcn.101b40e2
add esp, 0x230
ret 4
push esi
call ebp
jmp 0x100800eb
Function at 0x100844b0
Capabilities:
Move file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.10061710
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
push edx
mov dword [esp + 0x28], ecx
call fcn.101bbe7c
mov esi, eax
mov eax, dword [esp + 0x44]
push eax
call fcn.101bbe7c
add esp, 0xc
push 1
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x10084572
jmp 0x10084500
lea ecx, [esp + 0x24]
push ecx
call fcn.10061710
mov edx, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.100617b0
add esp, 0x20
test edx, edx
jl 0x1008459a
jg 0x1008454b
test eax, eax
jb 0x1008459a
test edx, edx
jg 0x1008459a
jl 0x10084558
cmp eax, 0x3e8
ja 0x1008459a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x10084500
test esi, esi
je 0x1008457f
push esi
call fcn.101b47dc
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10084590
push eax
call fcn.101b47dc
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
test esi, esi
je 0x100845a7
push esi
call fcn.101b47dc
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100845b8
push eax
call fcn.101b47dc
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret

Function at 0x10084720
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push 0
push edi
call fcn.101b5c80
add esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10084777
mov ecx, dword [esp + 8]
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
push 0
jne 0x10084780
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 2
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x1008b450
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.101b96e2
add esp, 0x18
test eax, eax
je 0x1008b473
cmp eax, 0xffffffff
jne 0x1008b475
xor eax, eax
ret

Function at 0x1008bbe0
Capabilities:
Get socket status

Disassembly:
sub esp, 8
test ebx, ebx
push esi
mov esi, eax
je 0x1008bbef
cmp dword [ebx], 0
jne 0x1008bc01
test edi, edi
je 0x1008bbf8
cmp dword [edi], 0
jne 0x1008bc01
test esi, esi
je 0x1008bc58
cmp dword [esi], 0
je 0x1008bc58
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.100985a0
add esp, 0xc
test esi, esi
je 0x1008bc21
cmp dword [esi], 0
jne 0x1008bc23
xor esi, esi
test edi, edi
je 0x1008bc30
cmp dword [edi], 0
je 0x1008bc30
mov edx, edi
jmp 0x1008bc32
xor edx, edx
test ebx, ebx
je 0x1008bc3f
cmp dword [ebx], 0
je 0x1008bc3f
mov ecx, ebx
jmp 0x1008bc41
xor ecx, ecx
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
push ecx
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.1008bb90
add esp, 8
pop esi
add esp, 8
ret

Function at 0x1008d460
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x104], eax
push 4
lea eax, [esp + 4]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1008d4b7
push 0x100
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1008a4f0
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.1005abd0
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.101b40e2
add esp, 0x108
ret

Function at 0x1008d4d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
xor eax, eax
cmp dword [esi + 0x7bc], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1008d50e
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.1005abd0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0x6dc]
push edx
mov dword [esp + 0xc], 1
call fcn.1004d8e0
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6e0]
push eax
call fcn.1004d8e0
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1008d587
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.1005abd0
add esp, 0x10
add esp, 0x14
ret
Function at 0x1008d780
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x102830d8]
test eax, eax
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
jne 0x1008d7d1
push 3
push 2
push eax
push eax
push 6
call fcn.1008b4c0
add esp, 0x14
test eax, eax
je 0x1008d7c5
mov dword [0x102830d8], 2
add esp, 0xc
ret
mov dword [0x102830d8], 1
jmp 0x1008d7d6
cmp eax, 2
je 0x1008d81d
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1008d804
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x1008d81c
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x1008dea0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push esi
mov esi, dword [eax + 8]
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0x80
call fcn.101b5c80
mov eax, dword [esi + 0x98]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1008df3c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x8c]
mov esi, eax
push ecx
push esi
call fcn.1008a4f0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.1005aa90
add esp, 0x1c
mov eax, 2
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.101b40e2
add esp, 0x188
ret
mov eax, dword [esp + 4]
lea edx, [esi + 0x100]
push edx
add esi, 0xd0
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.100602b0
add esp, 0x10
test eax, eax
jne 0x1008dfb2
push ebx
call fcn.101b707f
mov esi, eax
call fcn.101b707f
push 0x100
lea edx, [esp + 0x90]
mov ebx, eax
mov eax, dword [esi]
push edx
push eax
call fcn.1008a4f0
mov ecx, dword [ebx]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.1005aa90
add esp, 0x1c
pop ebx
mov eax, 2
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.101b40e2
add esp, 0x188
ret
mov ecx, dword [esp + 0x188]
pop esi
xor ecx, esp
xor eax, eax
call fcn.101b40e2
add esp, 0x188
ret

Function at 0x1008ec10
Capabilities:
Connect socket

Disassembly:
push esi
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x98]
push edi
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x18]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1008ec4b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
add esi, 0x9c
push esi
push edi
call fcn.1008dd00
add esp, 0xc
pop edi
pop esi
ret
push ebx
call fcn.1008dea0
mov eax, dword [esi + 0x98]
push 1
push eax
call fcn.10094570
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret
Function at 0x1008fb00
Capabilities:
Check http status code

Disassembly:
push ebx
push esi
push edi
push 0x11
mov esi, eax
push str.WWW_Authenticate:
push esi
mov ebx, ecx
mov edi, edx
call fcn.10051f80
add esp, 0xc
test eax, eax
je 0x1008fb2a
mov eax, dword [edi + 0xe0]
cmp eax, 0x191
je 0x1008fb4b
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.10051f80
add esp, 0xc
test eax, eax
je 0x1008fb8d
mov eax, dword [edi + 0xe0]
cmp eax, 0x197
jne 0x1008fb8d
xor ebx, ebx
cmp eax, 0x197
push esi
sete bl
call fcn.10075510
mov esi, eax
add esp, 4
test esi, esi
jne 0x1008fb6b
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebx
ret
push esi
push ebx
push edi
call fcn.10075c70
push esi
mov edi, eax
call dword [0x10279004]
add esp, 0x10
test edi, edi
je 0x1008fd3d
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.10051f80
add esp, 0xc
test eax, eax
je 0x1008fbef
mov ecx, dword [edi + 0xe0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x1008fbd2
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.1005abd0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
add ebx, 0x200
push ebx
push 0xa
push 0
add esi, 0xf
push esi
call fcn.1008a660
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.100762e0
add esp, 0x14
test eax, eax
jne 0x1008fcb1
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.10051f80
add esp, 0xc
test eax, eax
je 0x1008fc96
mov ecx, dword [edi + 0xe0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x1008fc53
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.1005abd0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.100762e0
add esp, 0x14
test eax, eax
je 0x1008fd3d
push str.CONNECT_responded_chunked
push edi
call fcn.1005abd0
push edi
mov dword [ebx + 0x20c], 1
call fcn.1008ac00
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.100762e0
add esp, 0x14
test eax, eax
je 0x1008fcc1
pop edi
pop esi
mov dword [ebx + 0x210], 1
xor eax, eax
pop ebx
ret
push 7
push str.HTTP_1.
push esi
call fcn.101b6427
add esp, 0xc
test eax, eax
jne 0x1008fd3d
mov al, byte [esi + 7]
cmp al, 0x30
je 0x1008fce0
cmp al, 0x31
jne 0x1008fd3d
cmp byte [esi + 8], 0x20
jne 0x1008fd3d
mov bl, byte [esi + 9]
cmp bl, 0x30
jl 0x1008fd3d
cmp bl, 0x39
jg 0x1008fd3d
mov dl, byte [esi + 0xa]
cmp dl, 0x30
jl 0x1008fd3d
cmp dl, 0x39
jg 0x1008fd3d
mov cl, byte [esi + 0xb]
cmp cl, 0x30
jl 0x1008fd3d
cmp cl, 0x39
jg 0x1008fd3d
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x1008fd18
cmp al, 0x39
jle 0x1008fd3d
movsx eax, bl
lea eax, [eax + eax*4]
movsx edx, dl
lea eax, [edx + eax*2]
movsx ecx, cl
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x14d0]
mov dword [edi + 0xe0], eax
mov dword [edi + 0xee4], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100943d0
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
mov byte [esi + edi - 1], 0
jne 0x10094402
push 0x2e
push esi
call fcn.101b5310
add esp, 8
test eax, eax
je 0x10094400
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x10098750
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10098775
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x100987bc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x100987c0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x10], 0
jbe 0x10098820
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
add ebx, 1
call edx
add esp, 0x18
sub ebp, 1
jne 0x100987e3
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x10]
pop ebp
pop ebx
jae 0x10098863
jmp 0x10098830
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x101f764c
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x101f764d
push eax
call ecx
mov eax, dword [esp + 0x20]
add eax, 1
add esp, 0x18
cmp eax, dword [esi + 0x10]
mov dword [esp + 8], eax
jb 0x10098830
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x100bbdd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.101b79b0
mov edx, dword [esp + 8]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 0x64]
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
add edi, 1
test byte [ecx + 0x30], 1
je 0x100bbe1d
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 8]
lea ebx, [edi + ecx]
cmp ebx, eax
jbe 0x100bbe0d
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
add dword [esi + 0x14], ecx
add dword [esi + 0x18], ecx
sub eax, ecx
sub dword [esi + 0xc], ecx
mov dword [esi + 8], eax
jmp 0x100bbe28
mov eax, dword [esp + 0x18]
cmp edi, dword [eax + 8]
ja 0x100bbe06
mov esi, eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 8]
movzx ebx, byte [ecx + eax - 1]
mov ecx, dword [edx + 0x3cc]
push ecx
call fcn.100d3700
push eax
call fcn.1015e8f0
add esp, 8
test eax, 0x200000
je 0x100bbe61
or edx, 0xffffffff
sub edx, ebx
add dword [esi + 8], edx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
push ebp
mov ebp, dword [esi + 8]
lea eax, [ebx + edi]
mov esi, ebp
sub esi, eax
xor esi, eax
mov ecx, ebp
xor ecx, eax
or esi, ecx
xor esi, ebp
shr esi, 0x1f
mov eax, 0x100
sub esi, 1
cmp ebp, eax
mov dword [esp + 0x18], eax
jae 0x100bbe8f
mov eax, ebp
mov dword [esp + 0x18], ebp
xor edi, edi
test eax, eax
jbe 0x100bbeeb
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
mov ecx, ebx
shr ecx, 0x1f
lea edx, [eax + ebp - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
lea ecx, [ecx]
mov edx, ebx
sub edx, edi
shr edx, 0x1f
mov eax, edi
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
sub dl, 1
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
sub dword [esp + 0x24], 1
xor edx, ebx
and eax, edx
not eax
add edi, 1
and esi, eax
cmp edi, dword [esp + 0x18]
jb 0x100bbeb0
mov ecx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea eax, [esi - 1]
shr eax, 0x1f
not esi
shr esi, 0x1f
and eax, esi
neg eax
add ebx, 1
and ebx, eax
sub ebp, ebx
mov dword [ecx + 8], ebp
mov dword [esp + 0x24], eax
not eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
pop ebp
pop edi
and eax, 1
pop esi
or eax, edx
pop ebx
pop ecx
ret
Function at 0x100bbf30
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xac
call fcn.101b79b0
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
push esi
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 8]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x20], eax
sub eax, edi
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0xc]
xor esi, esi
cmp eax, edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x1c], eax
jb 0x100bbf86
cmp edi, 0x40
jbe 0x100bbf9f
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.101b40e2
add esp, 0xac
ret
push ebx
lea ebx, [esp + 0x34]
neg ebx
and ebx, 0x3f
lea ecx, [edi + 0x100]
cmp eax, ecx
lea ebx, [esp + ebx + 0x34]
push ebp
mov dword [esp + 0x1c], ebx
jbe 0x100bbfc7
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x14], eax
push edi
push esi
push ebx
mov dword [esp + 0x38], esi
call fcn.101b5c80
mov ebp, dword [esp + 0x20]
mov eax, ebp
add esp, 0xc
xor ecx, ecx
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
jae 0x100bc080
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0xc4]
sub eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x14]
mov dword [esp + 0x20], eax
jmp 0x100bc00a
mov ebx, dword [esp + 0x28]
mov edx, ebp
xor edx, dword [esp + 0x30]
xor ebp, ebx
lea eax, [edx - 1]
not edx
shr edx, 0x1f
shr eax, 0x1f
and eax, edx
mov edx, dword [esp + 0x14]
xor edx, ebx
or edx, ebp
xor edx, dword [esp + 0x18]
mov ebp, dword [esp + 0x18]
neg eax
shr edx, 0x1f
mov ebx, eax
or ebx, dword [esp + 0x2c]
and eax, ecx
add dword [esp + 0x14], 1
neg edx
and edx, ebx
mov ebx, dword [esp + 0x1c]
or esi, eax
mov eax, dword [esp + 0x20]
mov al, byte [eax + ebp]
and al, dl
or byte [ecx + ebx], al
mov dword [esp + 0x2c], edx
add ecx, 1
mov edx, ecx
sub edx, edi
xor edx, edi
mov eax, ecx
xor eax, edi
or edx, eax
xor edx, ecx
shr edx, 0x1f
neg edx
add ebp, 1
and ecx, edx
cmp ebp, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
jb 0x100bc006
xor ebp, ebp
test edi, edi
jbe 0x100bc0f1
mov edx, esi
or edx, 0x20
mov al, byte [edx + ebx]
mov byte [esp + 0x13], al
mov eax, esi
and eax, 0x20
lea edx, [eax - 1]
shr edx, 0x1f
not eax
shr eax, 0x1f
and dl, al
neg dl
movzx eax, dl
mov ecx, esi
and ecx, 0xffffffdf
mov cl, byte [ecx + ebx]
mov dword [esp + 0x20], eax
not eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
and al, byte [esp + 0x13]
mov edx, dword [esp + 0x20]
and dl, cl
mov ecx, dword [esp + 0x34]
or al, dl
add esi, 1
mov byte [ecx + ebp], al
mov edx, esi
sub edx, edi
xor edx, edi
mov eax, esi
xor eax, edi
or edx, eax
xor edx, esi
shr edx, 0x1f
neg edx
add ebp, 1
and esi, edx
cmp ebp, edi
jb 0x100bc086
mov ecx, dword [esp + 0xb8]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.101b40e2
add esp, 0xac
ret
Function at 0x100d4230
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x100d42ca
mov edx, dword [esp + 8]
lea ecx, [edx - 1]
not edx
shr edx, 0x1f
push esi
mov esi, dword [edi + 4]
shr ecx, 0x1f
and ecx, edx
mov edx, dword [eax + 4]
xor edx, esi
sub ecx, 1
and edx, ecx
xor esi, edx
mov dword [edi + 4], esi
xor dword [eax + 4], edx
mov esi, dword [edi + 0xc]
mov edx, dword [eax + 0xc]
xor edx, esi
and edx, ecx
xor esi, edx
mov dword [edi + 0xc], esi
xor dword [eax + 0xc], edx
mov esi, dword [edi + 0x10]
mov edx, dword [eax + 0x10]
xor edx, esi
and edx, ecx
and edx, 4
xor esi, edx
mov dword [edi + 0x10], esi
xor dword [eax + 0x10], edx
xor esi, esi
cmp dword [esp + 0x18], esi
jle 0x100d42c9
push ebx
push ebp
lea esp, [esp]
mov edx, dword [edi]
mov ebx, dword [edx + esi*4]
lea ebp, [edx + esi*4]
mov edx, dword [eax]
mov edx, dword [edx + esi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + esi*4], edx
lea ebx, [ebx + esi*4]
add esi, 1
cmp esi, dword [esp + 0x20]
jl 0x100d42a0
pop ebp
pop ebx
pop esi
pop edi
ret