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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d33b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov dword [ebp - 0x1c], 0x10
mov eax, dword [ebx + 0x134]
mov esi, dword [ebx]
mov dword [ebp - 0x18], eax
jmp 0x49fb5f
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 0x18]
call fcn.0049b8c4
add esp, 0xc
cmp eax, 0xffffffff
je 0x49fc06
test eax, eax
jne 0x49fb93
push 1
push 0
push esi
call fcn.00493057
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x49fb3a
push 0x40b49c
push esi
call fcn.004928db
pop ecx
pop ecx
push 0x1c
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aab4c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x49fbc2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x18]
push ebx
call fcn.00492dfa
pop ecx
pop ecx
cmp edi, 0xffffffff
jne 0x49fbe3
push 0x40b4f0
push esi
call fcn.004928db
pop ecx
pop ecx
push 0x1e
jmp 0x49fb81
push 0x40b514
push esi
call fcn.00492971
push 1
push edi
mov dword [ebx + 0x134], edi
call fcn.004a5fd8
add esp, 0x10
xor eax, eax
jmp 0x49fb82
push 0x40b4c8
jmp 0x49fbd7

Function at 0x4a19d5
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x64
cdq
xor esi, esi
pop ebx
idiv ebx
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
cmp eax, 2
je 0x4a1a02
push 0x40ba14
push ecx
call fcn.004928db
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x4a1a59
cmp dword [ebp + 0xc], 0xc8
je 0x4a1a1c
push dword [ebp + 0xc]
push 0x40ba30
push ecx
call fcn.00492971
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x4a1a2d
push edi
call fcn.004a15ec
pop ecx
jmp 0x4a1a55
cmp eax, 0x14
jne 0x4a1a3a
push edi
call fcn.004a11ac
jmp 0x4a1a2a
cmp eax, 0x15
jne 0x4a1a43
push 0xd
jmp 0x4a1a4a
cmp eax, 0x16
jne 0x4a1a57
push 0xe
push 1
push edi
call fcn.004a1666
add esp, 0xc
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a66fd
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax + 0x2c]
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x4a6718
mov esi, dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.0049453c
push edx
push eax
call fcn.004944e6
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4a6762
push dword [ebx + 0x124]
push dword [ebx + 0x120]
call fcn.0049453c
push edx
push eax
call fcn.004944e6
mov ecx, dword [edi + 0x19c]
add esp, 0x10
sub ecx, eax
cmp esi, ecx
cmovl ecx, esi
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a73b2
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 [0x4d3368]
mov edi, eax
pop ecx
test edi, edi
je 0x4a749e
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 0x4a741b
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 0x4a7421
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 0x4a7496
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 0x4a743b
mov ebx, dword [ebp - 8]
jmp 0x4a7496
push 1
push 0x40d0ec
push dword [edi + 4]
call dword [esi + 4]
push 1
push 0x40d0ed
push dword [edi + 8]
call dword [esi + 4]
add esp, 0x18
inc ebx
cmp ebx, dword [esi + 0x10]
jb 0x4a7478
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a74f5
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x4a85e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4a8611
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4a8602
xor eax, eax
jmp 0x4a8664
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4a8642
cmp dword [esi + 8], 0
jne 0x4a8632
push 0x416128
push dword [eax + 8]
call fcn.004b6fb1
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x4a8632
or eax, 0xffffffff
jmp 0x4a8664
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.004b8734
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4a8662
cmp dword [esi + 8], eax
je 0x4a865c
push dword [esi + 8]
call fcn.004b82dc
and dword [esi + 8], edi
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4bc85d
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.004bb3fe
sahf
mov dword [ecx], ecx
dec ebp
lea eax, [ebp - 0x72c]
push eax
call fcn.004bb40e
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004bb3c3
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.004bb3fe
push 0xffffffffffffffef
xor al, 0xe8
lea eax, [ebp - 0x718]
push eax
push 0x40
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
push 5
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x3a8]
call fcn.004bb36f
add esp, 0xc
lea eax, [ebp - 0x718]
push eax
push dword [ebp - 0x718]
clc
invalid
jmp [edx + 5]
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
call fcn.004bb3fe
jg 0x4bc911
jmp [edx - 0x11]
invalid

Function at 0x4c8f76
Capabilities:
Read file on windows

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

Function at 0x4caad6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ca796
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x403203
pop dword [ebp - 0x18]
mov eax, 0xe1603bc0
add eax, 0x1edff643
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xc723a9b3
sub dword [ebp - 0x28], 0x78d16468
mov dword [ebp - 0x24], 0xc021131
sub dword [ebp - 0x24], 0xd9cec4ec
mov dword [ebp - 0x20], 0xffb70040
sub dword [ebp - 0x20], 0xb36abc12
mov dword [ebp - 0x1c], 0x5306af8b
sub dword [ebp - 0x1c], 0x5306af8b
lea eax, [ebp - 0x28]
push eax
mov eax, 0x3bb0b7d4
sub eax, 0x3b703748
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x61fcd620
sub dword [ebp - 0x28], 0xed8a6cca
mov dword [ebp - 0x24], 0x409dcf75
add dword [ebp - 0x24], 0xce9200
mov dword [ebp - 0x20], 0xfd9bf46d
add dword [ebp - 0x20], 0x65d377ff
mov dword [ebp - 0x1c], 0xf559b884
sub dword [ebp - 0x1c], 0xf559b884
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3f8e9
push 0
call eax
mov ecx, 0x6bda
xor esi, esi
add esi, eax
mov edx, 0xa71f8532
add edx, 0x59218ace
add edx, dword [ebp - 0x18]
mov edi, 0x3766f58
add edi, 0x4e71b1be
mov ebx, dword [edx]
xor dword [ebp - 0xc], 0x5dc1e380
add ebx, edi
add dword [ebp - 8], ebx
mov dword [esi], ebx
sub dword [ebp - 0x14], 0xb4824708
add esi, 4
add edx, 0x888dc776
add edx, 0x7772388e
loop 0x40331c
add eax, 0x1a23b
mov ebx, eax
add eax, 0x24167f4a
add eax, 0xdbe980bb
mov ecx, 0x1e8fffe3
sub ecx, 0x1e4fffe3
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40673a
pop dword [ebp - 0x50]
mov eax, 0x27036c87
add eax, 0xd93cfab3
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xb61347cc
add dword [ebp - 0x60], 0x983efd7f
mov dword [ebp - 0x5c], 0x8459356d
add dword [ebp - 0x5c], 0xadda16d8
mov dword [ebp - 0x58], 0xd05ccb5c
add dword [ebp - 0x58], 0x7bef78d2
mov dword [ebp - 0x54], 0x25c8cb03
sub dword [ebp - 0x54], 0x25c8cb03
lea eax, [ebp - 0x60]
push eax
mov eax, 0xdd55ca21
add eax, 0x22eab6e3
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x7a7efa42
add dword [ebp - 0x60], 0xf9f36f14
mov dword [ebp - 0x5c], 0xc733722d
add dword [ebp - 0x5c], 0x7a38ef48
mov dword [ebp - 0x58], 0x1afd2d37
add dword [ebp - 0x58], 0x48723f35
mov dword [ebp - 0x54], 0x5f02dbe4
add dword [ebp - 0x54], 0xa0fd241c
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x4aa301d1
add eax, 0xb59d7f2f
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x37ef9
push 0
call eax
mov ecx, 0x95367606
add ecx, 0x6ac9d3a8
xor esi, esi
add esi, eax
mov edi, 0x596622e0
add edi, 0xa6e0c120
add edi, dword [ebp - 0x50]
mov edx, 0xc248f498
mov dword [ebp - 0x34], 0xd0cab5e2
mov ebx, dword [edi]
sub dword [ebp - 0x34], edx
xor ebx, edx
xor dword [ebp - 0x18], edx
mov dword [esi], ebx
xor dword [ebp - 0x30], ebx
add esi, 0x51170951
add esi, 0xaee8f6b3
add edi, 0x56760723
add edi, 0xa989f8e1
loop 0x406858
add eax, 0xe959eb4f
sub eax, 0xe958d1c4
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10001918
Capabilities:
Connect socket

Disassembly:
push ecx
mov eax, dword [edi + 0x18]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x10001934
call fcn.10030052
mov esi, dword [edi + 0x18]
call fcn.1002fff2
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x10001947
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x1c], 0xffffffff
mov ecx, dword [edi + 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004105
mov ecx, dword [edi + 0x30]
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004105
add esp, 0x14
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x13f0], ebx
mov dword [edi + 0x13ec], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x3e0], ebx
mov dword [edi + 0x3e4], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x1c], eax
je 0x10001a04
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x10001a04
mov eax, dword [edi + 0x40]
push str.http:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100019c8
mov eax, dword [edi + 0x24]
jmp 0x10001a09
push dword [edi + 0x14]
call fcn.1002ffab
cmp eax, ebx
pop ecx
mov dword [edi + 0x18], eax
je 0x10001a04
mov ecx, dword [edi + 0x1c]
lea edx, [eax + 0xf8]
lea esi, [eax + 0xfc]
mov dword [edx], ecx
mov dword [esi], ecx
mov dword [eax + 0x110], edx
mov dword [eax + 0x114], esi
mov eax, dword [edi + 0x18]
call fcn.100302cb
cmp eax, 1
je 0x100019c3
mov dword [edi + 0x24], ebx
xor eax, eax
pop esi
pop ebx
pop ecx
ret

Function at 0x10001a0d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edi + 0x24], 0
push esi
jne 0x10001a1e
xor eax, eax
jmp 0x10001a95
mov eax, dword [ebx + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x10001a92
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
mov eax, 0x1000
cmp ecx, eax
jl 0x10001a3d
mov ecx, eax
mov eax, dword [ebx]
mov esi, dword [edi + 0x18]
add eax, dword [ebp - 4]
test esi, esi
je 0x10001a5b
push ecx
push eax
call fcn.100331a4
test eax, eax
pop ecx
pop ecx
jge 0x10001a68
or esi, 0xffffffff
jmp 0x10001a6a
push 0
push ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x10001a98
mov eax, dword [edi + 0x3e8]
test eax, eax
je 0x10001a87
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001a98
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x10001a2c
xor eax, eax
inc eax
pop esi
leave
ret
and dword [edi + 0x24], 0
jmp 0x10001a1a
Function at 0x10001aa1
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ecx
cmp dword [esi + 0x24], 0
push ebx
push ebp
push edi
jne 0x10001ab3
xor eax, eax
jmp 0x10001b8a
mov edi, dword [esi + 0x13f0]
mov eax, edi
cdq
mov ebx, bind
add eax, ebx
adc edx, 0
mov dword [esp + 0x10], edx
mov ebp, 0x1000
js 0x10001b17
jg 0x10001ad7
cmp eax, ebp
jbe 0x10001b17
mov ecx, dword [esi + 0x13ec]
test ecx, ecx
je 0x10001b17
cmp edi, ebp
je 0x10001aee
mov eax, edi
sub eax, ecx
cmp eax, 0x10
jg 0x10001b17
mov eax, edi
sub eax, ecx
push eax
mov dword [esi + 0x13f0], eax
lea eax, [ecx + esi + 0x3ec]
push eax
lea eax, [esi + 0x3ec]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
and dword [esi + 0x13ec], 0
mov eax, dword [esi + 0x13f0]
mov ecx, ebp
sub ecx, eax
cmp ecx, ebx
jle 0x10001b27
mov ecx, ebx
mov edx, dword [esi + 0x18]
xor ebx, ebx
cmp edx, ebx
lea eax, [eax + esi + 0x3ec]
je 0x10001b44
push ecx
push eax
push edx
call fcn.1003002b
add esp, 0xc
jmp 0x10001b50
push ebx
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jge 0x10001b5e
mov dword [esi + 0x24], ebx
jmp 0x10001aac
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x10001b76
push ebx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001b56
add dword [esi + 0x13f0], edi
cmp edi, ebx
jne 0x10001b87
mov dword [esi + 0x28], 1
mov eax, dword [esi + 0x24]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10002a9e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ecx, edi
and ecx, 0xff00
mov edx, edi
shl edx, 0x10
or ecx, edx
shl ecx, 8
movzx edx, di
or ecx, edx
xor ecx, 0xb11924e1
movsx esi, cl
mov edx, ecx
shr edx, 8
movsx edx, dl
mov ebx, esi
mov ebp, dword [esp + 0x14]
shl ebx, 5
add ebx, esi
add edx, ebx
mov esi, edx
shl esi, 5
add esi, edx
mov edx, ecx
shr edx, 0x10
movsx edx, dl
add esi, edx
shr ecx, 0x18
mov edx, esi
shl edx, 5
add edx, esi
movsx ecx, cl
mov ebx, edi
and ebx, 3
mov eax, 0x96438af7
lea ecx, [ecx + edx + 0x7c5d0f85]
mov dword [esp + 0x14], ebx
je 0x10002b60
mov esi, ebp
jmp 0x10002b19
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x100552d8]
mov ebp, ecx
not ebp
shl ebp, 0x15
mov dl, al
add dl, cl
xor dl, byte ds:[esi]
add ebp, 0x2611501
shr ecx, 0xb
or ecx, ebp
mov ebp, eax
shl ebp, 5
add ebp, eax
movzx eax, dl
mov byte ds:[esi], dl
add esi, 1
sub ebx, 1
lea eax, [ebp + eax + 3]
jne 0x10002b19
sub edi, dword [esp + 0x14]
mov ebp, esi
test edi, edi
mov esi, ebp
je 0x10002ba7
jmp 0x10002b6a
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x100552d8]
mov ebx, ecx
not ebx
shl ebx, 0x15
lea edx, [eax + ecx]
xor edx, dword ds:[esi]
add ebx, 0x3938731
shr ecx, 0xb
or ecx, ebx
mov ebx, eax
shl ebx, 5
add ebx, edx
mov dword ds:[esi], edx
add esi, 4
sub edi, 4
lea eax, [ebx + eax + 3]
jne 0x10002b6a
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x10003a40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x1005a5a0], 0
push esi
push edi
mov edx, 0xff
jne 0x10003a7f
xor esi, esi
push 8
mov ecx, esi
pop edi
test cl, 1
je 0x10003a66
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x10003a68
shr ecx, 1
dec edi
jne 0x10003a57
mov edi, esi
xor edi, edx
inc esi
cmp esi, 0x100
mov dword [edi*4 + 0x1005a5a0], ecx
jb 0x10003a52
xor ecx, ecx
cmp dword [esp + 0x10], ecx
jle 0x10003aab
mov esi, dword [esp + 0xc]
movzx esi, byte [ecx + esi]
mov edi, eax
and edi, edx
shr eax, 8
xor esi, edi
xor eax, dword [esi*4 + 0x1005a5a0]
xor eax, 0xff000000
inc ecx
cmp ecx, dword [esp + 0x10]
jl 0x10003a87
pop edi
pop esi
ret

Function at 0x10003ac1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov ecx, dword [eax]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 8]
push ebx
push esi
mov esi, dword [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [eax + 0xc]
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x10]
add edi, 2
movzx ebx, byte [edi]
xor edx, edx
mov dh, byte [edi - 2]
add edi, 4
mov dl, byte [edi - 5]
shl edx, 8
or edx, ebx
movzx ebx, byte [edi - 3]
shl edx, 8
or edx, ebx
mov ebx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
mov dword [ebp + ebx*4 - 0x150], edx
jb 0x10003aed
push 0x40
lea edx, [ebp - 0x148]
pop edi
mov ebx, dword [edx + 0x2c]
xor ebx, dword [edx + 0x18]
xor ebx, dword [edx - 8]
xor ebx, dword [edx]
add edx, 4
dec edi
rol ebx, 1
mov dword [edx + 0x34], ebx
jne 0x10003b25
xor edx, edx
cmp edx, 0x14
jae 0x10003b60
mov ebx, dword [ebp - 4]
mov edi, esi
not edi
and edi, dword [ebp - 8]
and ebx, esi
or edi, ebx
add edi, dword [ebp + edx*4 - 0x150]
lea edi, [edi + ecx + 0x5a827999]
jmp 0x10003bb7
cmp edx, 0x28
jae 0x10003b7d
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 4]
xor edi, esi
add edi, dword [ebp + edx*4 - 0x150]
lea edi, [edi + ecx + 0x6ed9eba1]
jmp 0x10003bb7
cmp edx, 0x3c
jae 0x10003ba1
mov edi, dword [ebp - 4]
mov ebx, dword [ebp - 4]
or edi, esi
and edi, dword [ebp - 8]
and ebx, esi
or edi, ebx
add edi, dword [ebp + edx*4 - 0x150]
lea edi, [edi + ecx - 0x70e44324]
jmp 0x10003bb7
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 4]
xor edi, esi
add edi, dword [ebp + edx*4 - 0x150]
lea edi, [edi + ecx - 0x359d3e2a]
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
ror esi, 2
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x10]
mov dword [ebp - 8], ebx
mov ebx, esi
rol ebx, 5
inc edx
add edi, ebx
cmp edx, 0x50
mov dword [ebp - 0x10], edi
jb 0x10003b3d
mov edx, dword [eax]
add edx, edi
mov dword [eax], edx
mov edx, dword [eax + 4]
add edx, esi
mov esi, dword [ebp - 4]
mov dword [eax + 4], edx
mov edx, dword [eax + 8]
add edx, esi
mov esi, dword [ebp - 8]
mov dword [eax + 8], edx
mov edx, dword [eax + 0xc]
add edx, esi
mov dword [eax + 0xc], edx
mov edx, dword [eax + 0x10]
pop edi
add edx, ecx
pop esi
mov dword [eax + 0x10], edx
pop ebx
leave
ret
Function at 0x10004872
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
push 0
push 0x100421fc
call fcn.10004041
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
pop ecx
pop ecx
push dword [esp + 0x18]
mov dword [esp + 0x10], eax
call ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x1000490a
cmp word [edi], 0
push esi
mov esi, edi
je 0x10004902
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
jne 0x10004902
push 0x3d
lea eax, [esi + 2]
call fcn.10004976
mov dword [esp + 0x18], eax
sub eax, esi
sar eax, 1
cmp eax, ebp
pop ecx
jne 0x100048f5
lea eax, [ebp + ebp]
push eax
push esi
push dword [esp + 0x24]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x100048f5
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add eax, 2
push eax
call fcn.100040da
pop ecx
push esi
call ebx
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x100048ac
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop esi
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10004bc7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
xor edi, edi
push 0x206
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x10004c49
push esi
push 0x104
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea eax, [ebp - 0x208]
push edi
push eax
call fcn.10004041
mov esi, eax
mov eax, dword [esi + 4]
cmp eax, edi
pop ecx
pop ecx
je 0x10004c44
mov ecx, dword [esi]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x10004c44
push 0x5c
call fcn.10004230
pop ecx
mov eax, esi
pop esi
jmp 0x10004c56
push edi
push 0x100421fc
call fcn.10004041
pop ecx
pop ecx
pop edi
leave
ret

Function at 0x1000688e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
call fcn.10003dfb
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
pop esi
call fcn.10003f87
mov edi, dword [ebp + 8]
push dword [edi]
mov ebx, dword [edi + 4]
mov esi, eax
call fcn.100041c0
mov eax, dword [esi]
mov edx, dword [eax]
pop ecx
pop ecx
push 4
pop ecx
cmp dword [esi + 4], ecx
jbe 0x100068e7
mov eax, dword [esi]
imul edx, edx, 0x3279092d
add edx, 0x54d794f
add eax, ecx
mov ebx, edx
shr ebx, 0x18
xor byte [eax], bl
inc ecx
cmp ecx, dword [esi + 4]
jb 0x100068ca
push dword [esi + 4]
push dword [esi]
call fcn.1000478c
pop ecx
pop ecx
mov ebx, eax
call fcn.10004019
mov ecx, dword [ebx + 4]
mov eax, dword [edi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [ebx]
mov dword [ebx + 4], eax
mov eax, dword [edi]
mov dword [edi], ecx
mov esi, ebx
mov dword [ebx], eax
call fcn.10004019
pop edi
pop esi
pop ebx
leave
ret