joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7020
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d2370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004abad6
mov eax, dword [0x5cea88]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004aba08
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004b7ac0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4b70c7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b70be
cmp al, 0xff
je 0x4b70be
dec al
mov byte [ecx], al
jmp 0x4b70c7
push ecx
call fcn.004c0e8a
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4b70f8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b70ef
cmp al, 0xff
je 0x4b70ef
dec al
mov byte [ecx], al
jmp 0x4b70f8
push ecx
call fcn.004c0e8a
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4c34ee
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c3526
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c157b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c1553
jmp 0x4c3532
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c4be3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c4c25
call fcn.004ca9be
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c4c25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c4c1c
xor eax, eax
jmp 0x4c4c2d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c4c33
pop edi
pop esi
pop ebx
ret 4

Function at 0x4caeee
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4caf1c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4caf3a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cae54
jmp 0x4caf3a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4caf3a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cae54
test edi, edi
mov eax, edi
jne 0x4caf24
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401650
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x43d00c]
mov edi, ecx
xor esi, esi
xorps xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
movaps xmmword [esp + 0x10], xmm0
push 0x4000000
push 2
call fcn.0040d6f0
add esp, 8
test eax, eax
mov dword [esp + 0xc], eax
je 0x40176a
mov eax, dword [edi + 4]
lea ecx, [esp + 0x10]
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov dword [ecx + 8], esi
mov eax, dword [edi + 8]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], esi
mov eax, dword [edi + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x401771
cmp esi, eax
jge 0x4016fa
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
jne 0x4016fa
push dword [edi + 0xc]
push dword [edi + 4]
push esi
push dword [ebp + 8]
push dword [edi]
call fcn.0040bc70
add esp, 0x14
test eax, eax
jle 0x40177f
add esi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x10]
call fcn.0040c700
add esp, 8
mov ebx, eax
mov eax, dword [esp + 0x20]
cmp eax, dword [edi + 0x10]
jne 0x401737
push dword [ebp + 0xc]
push eax
push 1
push dword [edi + 8]
call fcn.0041ed1f
add esp, 0x10
cmp eax, dword [esp + 0x20]
jne 0x401778
xor eax, eax
mov dword [esp + 0x20], 0
test ebx, ebx
je 0x4016b4
mov esi, 0x27
cmp ebx, 1
jne 0x401784
push dword [ebp + 0xc]
push eax
push 1
push dword [edi + 8]
call fcn.0041ed1f
add esp, 0x10
xor ecx, ecx
cmp eax, dword [esp + 0x20]
mov esi, 0x46
cmove esi, ecx
jmp 0x401784
mov esi, 0x27
jmp 0x401790
mov esi, 0x28
jmp 0x401784
mov esi, 0x46
jmp 0x401784
mov esi, 6
push dword [esp + 0xc]
call fcn.0040d7d0
add esp, 4
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00412591
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4036c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edi, ecx
push 0x2f
push ecx
call fcn.00414dbe
add esp, 8
test eax, eax
je 0x4036f2
mov ecx, edi
mov esi, eax
mov word [eax], 0
call fcn.004036c0
mov ebx, eax
test eax, eax
je 0x4036fb
mov word [esi], 0x2f
jmp 0x4036f4
xor ebx, ebx
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
xor ebx, ebx
cmp word [edi], 0
je 0x4036eb
push edi
call fcn.0041d415
add esp, 4
test eax, eax
jns 0x4036eb
call fcn.0041984c
cmp dword [eax], 0x11
je 0x4036eb
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x403758
call fcn.0041984c
push dword [eax]
push edi
push str.ensure_parent_dir:_failed_to_create_directory:__S__err:__d
push 0x43f3e8
call fcn.0040ff00
add esp, 0x10
mov ebx, 7
jmp 0x4036eb
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x403737
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x403737
Function at 0x404d20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov ecx, dword [0x43d00c]
mov eax, dword [ebp + 8]
lea edi, [esp + 0x64]
xor ecx, ebp
mov dword [esp + 0x68], ecx
mov ecx, edi
push eax
call fcn.00404e70
add esp, 4
mov edi, dword [edi]
test edi, edi
je 0x404df3
xor ebx, ebx
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
xorps xmm0, xmm0
mov dword [eax + 4], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x20], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x28], ebx
mov dword [eax + 0x24], ebx
mov dword [eax + 0x30], ebx
mov dword [eax + 0x2c], ebx
mov dword [eax + 0x38], ebx
mov dword [eax + 0x34], ebx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax], 0x44
mov dword [eax + 8], str.winsta0Default
movaps xmmword [ecx], xmm0
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test eax, eax
je 0x404e08
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x404dff
mov dword [ecx], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x64], 0
push edi
call fcn.00411d52
add esp, 4
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.00412591
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 0x64], 0
xor esi, esi
jmp 0x404dde
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404dc3
lea eax, [esp + 0xc]
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
lea ecx, [esp + 0x14]
push ecx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea ebx, [esp + 0xc]
mov ecx, 0x4385ec
mov eax, dword [ebx]
test eax, eax
cmovne ecx, eax
sub esp, 8
mov dword [esp + 4], ecx
call fcn.00405030
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x404dcd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x404dcd
Function at 0x405440
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43d00c]
mov bl, byte [ebp + 0xc]
mov esi, edx
mov edi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
push str.MOZ_LAUNCHED_CHILD1
call fcn.0041c4a5
add esp, 4
push edi
call fcn.0041cb6d
add esp, 4
test eax, eax
je 0x4054a7
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40553b
push str.Warning:_chdir_failed
push 0x43f3e8
call fcn.0040ff00
add esp, 8
test bl, bl
je 0x4054bd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412591
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x14]
mov edx, esi
mov ecx, dword [eax]
push edi
push eax
call fcn.00404d20
add esp, 8
test eax, eax
je 0x4054ab
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp - 0x14]
call ebx
mov esi, eax
call ebx
sub eax, esi
cmp eax, 0x270f
ja 0x40552d
mov ebx, 0x2710
sub ebx, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.USER32.dll_WaitForInputIdle]
cmp eax, 0xffffffff
jne 0x40552d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5bf
jne 0x40552d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x2710
jb 0x4054ed
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4054ab
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x405495
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x405495
Function at 0x407770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43d00c]
mov esi, ecx
lea edi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.00414930
add esp, 0xc
cmp byte [0x43f1dc], 0
je 0x4077c0
push edi
push 0x437c02
push 0x43e7a8
call fcn.00410720
add esp, 0xc
test eax, eax
jne 0x4077dd
jmp 0x40782a
push 0x437bf6
push 0x43e7a8
push str._s_s
push 0x105
push edi
call fcn.00403e90
add esp, 0x14
push 0x4385ce
push edi
call fcn.0041d30b
add esp, 8
test eax, eax
je 0x40782a
mov edi, eax
push esi
call fcn.0041f3f0
add esp, 4
push edi
push 1
push eax
push esi
call fcn.0041ed1f
add esp, 0x10
cmp eax, 1
jne 0x40782e
cmp byte [0x43f1dc], 0
je 0x407826
push 0x43e7a8
call fcn.004107a0
add esp, 4
test eax, eax
je 0x40782e
mov bl, 1
jmp 0x407830
xor ebx, ebx
jmp 0x407839
xor ebx, ebx
push edi
call fcn.0041e639
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412591
mov eax, ebx
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407850
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x624
mov eax, dword [0x43d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ecx, dword [0x43db8c]
mov edx, dword fs:[0x2c]
mov eax, dword [0x43f5f4]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x40798f
mov eax, dword [0x43f3e8]
test eax, eax
je 0x4078a3
push eax
call fcn.0041e639
add esp, 4
mov dword [0x43f3e8], 0
cmp byte [0x43efd1], 1
jne 0x40797a
lea esi, [ebp - 0x21a]
push 0x20a
push 0
push esi
call fcn.00414930
add esp, 0xc
push esi
push 0x437c02
push 0x43e7a8
call fcn.00410720
add esp, 0xc
test eax, eax
je 0x407915
xor edi, edi
lea ebx, [ebp - 0x424]
push 0x20a
push edi
push ebx
call fcn.00414930
add esp, 0xc
push 0x43e7a8
push str._supdate.status
push 0x105
push ebx
call fcn.00403e90
add esp, 0x10
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [ebp - 0x424]
push 0x20a
push 0
push esi
call fcn.00414930
add esp, 0xc
push esi
push 0x438214
push 0x43e7a8
call fcn.00410720
add esp, 0xc
test eax, eax
je 0x40797a
xor edi, edi
lea ebx, [ebp - 0x62e]
push 0x20a
push edi
push ebx
call fcn.00414930
add esp, 0xc
push 0x43e7a8
push str._supdate.log
push 0x105
push ebx
call fcn.00403e90
add esp, 0x10
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412591
add esp, 0x624
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x43f5f4
call fcn.00411d87
add esp, 4
cmp dword [0x43f5f4], 0xffffffff
jne 0x407887
mov dword [0x43f3e8], 0
push 0x409c40
call fcn.00411ffc
add esp, 4
push 0x43f5f4
call fcn.00411dd9
add esp, 4
jmp 0x407887
Function at 0x40a9f0
Capabilities:
Hash data via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
test ecx, ecx
je 0x40aa41
mov esi, edx
test edx, edx
je 0x40aa41
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40aa41
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x40aa41
push ecx
push 1
push dword [ebp + 8]
push esi
call fcn.0041eb0c
add esp, 0x10
cmp eax, 1
jne 0x40aa5b
mov edi, dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push esi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40aa7c
add ebx, 4
dec edi
jne 0x40aa25
xor eax, eax
jmp 0x40aa77
push 2
call fcn.0041526f
add esp, 4
push str.ERROR:_Invalid_parameter_specified._n
push eax
call fcn.004053f0
add esp, 8
jmp 0x40aa74
push 2
call fcn.0041526f
add esp, 4
push edi
push str.ERROR:_Could_not_read__s_n
push eax
call fcn.004053f0
add esp, 0xc
xor eax, eax
dec eax
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.0041526f
add esp, 4
push dword [ebp + 0x14]
push str.ERROR:_Could_not_update_verify_context_for__s_n
push eax
call fcn.004053f0
add esp, 0xc
mov eax, 0xfffffffe
jmp 0x40aa77
Function at 0x40b260
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x43d00c]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x30], eax
push ebx
push 0x20
push 1
push edi
call fcn.0041eb0c
add esp, 0x10
mov esi, 6
cmp eax, 0x20
jne 0x40b32e
mov esi, dword [sym.imp.WSOCK32.dll_ntohl]
push dword [edi + 8]
call esi
mov dword [edi + 8], eax
push dword [edi + 0xc]
call esi
mov dword [edi + 0xc], eax
push dword [edi + 0x10]
call esi
mov dword [edi + 0x10], eax
push dword [edi + 0x14]
call esi
mov dword [edi + 0x14], eax
push dword [edi + 0x18]
call esi
mov dword [edi + 0x18], eax
push dword [edi + 0x1c]
call esi
mov dword [edi + 0x1c], eax
push ebx
call fcn.00419c59
add esp, 4
mov ecx, esp
push ecx
push eax
call fcn.00419fd7
add esp, 8
mov esi, 6
test eax, eax
jne 0x40b32e
mov eax, 0x4944424d
mov ecx, 0x30314646
mov esi, 0x29
xor eax, dword [edi]
xor ecx, dword [edi + 4]
or ecx, eax
jne 0x40b32e
mov eax, dword [esp + 0x14]
cmp eax, 0x20
jb 0x40b32e
add eax, 0xffffffe0
sub eax, dword [edi + 0x14]
jb 0x40b32e
sub eax, dword [edi + 0x18]
jb 0x40b32e
mov ecx, dword [edi + 0x1c]
cmp eax, ecx
jb 0x40b32e
xor edx, edx
cmp eax, ecx
mov esi, 0x29
cmove esi, edx
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00412591
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40b350
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 8]
add edi, ebx
add eax, dword [ebp + 0x10]
add edi, dword [esi + 0x1c]
mov dword [ebp - 0x20], eax
push edi
call fcn.0041f18c
add esp, 4
test eax, eax
je 0x40b3d4
test edi, edi
mov dword [ebp - 0x1c], eax
je 0x40b3b7
mov ebx, eax
mov eax, 0x7fffffff
mov esi, 0x7fffffff
cmp edi, eax
cmovb esi, edi
push dword [ebp + 0xc]
push esi
push 1
push ebx
call fcn.0041eb0c
add esp, 0x10
cmp eax, esi
jne 0x40b3de
add ebx, esi
sub edi, esi
jne 0x40b386
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [esi + 0x14]
imul ecx, ebx, 0xaaaaaaab
ror ecx, 2
cmp ecx, 0x15555555
jbe 0x40b3ea
mov dword [ebp - 0x10], 0x29
jmp 0x40b4f5
mov eax, 0xc
jmp 0x40b503
mov dword [ebp - 0x10], 6
jmp 0x40b4f5
test ebx, ebx
jle 0x40b4e5
mov edx, dword [esi + 0x18]
mov esi, dword [esi + 0x1c]
mov ecx, eax
mov edi, eax
add ecx, ebx
mov ebx, ecx
mov dword [ebp - 0x24], ecx
add edx, ecx
add esi, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], esi
mov esi, dword [ebp + 0x10]
push dword [edi]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi], eax
push dword [edi + 4]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 4], eax
push dword [edi + 8]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov dword [edi + 8], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [edi]
sub ecx, esi
cmp eax, ecx
ja 0x40b3c8
mov ecx, dword [ebp - 0x2c]
sub ecx, ebx
cmp eax, ecx
ja 0x40b3c8
test eax, eax
je 0x40b462
xor eax, eax
mov cl, byte [esi + eax]
add byte [ebx + eax], cl
inc eax
mov ecx, dword [edi]
cmp eax, ecx
jb 0x40b453
jmp 0x40b464
xor ecx, ecx
push dword [ebp + 0x14]
push ecx
push 1
push ebx
call fcn.0041ed1f
add esp, 0x10
cmp eax, dword [edi]
mov dword [ebp - 0x18], eax
jne 0x40b4ee
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], 0x40
sub ecx, edx
cmp eax, ecx
ja 0x40b3c8
push dword [ebp + 0x14]
push eax
push 1
push edx
call fcn.0041ed1f
add esp, 0x10
cmp eax, dword [edi + 4]
jne 0x40b4f5
add esi, dword [ebp - 0x18]
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 8]
sub edx, esi
cmp ecx, edx
jl 0x40b3c8
mov edx, dword [ebp - 0x20]
sub edx, esi
cmp ecx, edx
jg 0x40b3c8
add edi, 0xc
add ebx, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
add esi, ecx
mov dword [ebp - 0x10], 0
cmp edi, dword [ebp - 0x24]
jb 0x40b413
jmp 0x40b4f5
mov dword [ebp - 0x10], 0
jmp 0x40b4f5
mov dword [ebp - 0x10], 0x40
push dword [ebp - 0x1c]
call fcn.0041ed02
add esp, 4
mov eax, dword [ebp - 0x10]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40bc70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
xor esi, esi
mov edi, dword [ecx + 8]
cmp edi, eax
je 0x40bca3
xor esi, esi
dec esi
sub edi, eax
jl 0x40bca3
mov ebx, dword [ebp + 8]
add eax, dword [ecx + 4]
push 0
push eax
push dword [ebx]
call fcn.00419c7f
add esp, 0xc
test eax, eax
je 0x40bcaa
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x18]
cmp edi, eax
cmovg edi, eax
push dword [ebx]
push edi
push 1
push dword [ebp + 0x14]
call fcn.0041eb0c
add esp, 0x10
jmp 0x40bca5

Function at 0x40bcd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movdqa xmm0, xmmword [0x4353b0]
movdqa xmm1, xmmword [0x4353c0]
movdqa xmm2, xmmword [0x4353d0]
movdqa xmm3, xmmword [0x4353e0]
mov eax, 0xfffffc00
movdqa xmm5, xmm0
pxor xmm6, xmm6
movdqa xmm4, xmm0
paddd xmm0, xmm3
pand xmm5, xmm1
psrld xmm4, 1
psubd xmm6, xmm5
pxor xmm5, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
pand xmm4, xmm1
psubd xmm5, xmm4
psrld xmm6, 1
pxor xmm4, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
pand xmm6, xmm1
psubd xmm4, xmm6
psrld xmm5, 1
pxor xmm6, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
pand xmm5, xmm1
psubd xmm6, xmm5
psrld xmm4, 1
pxor xmm5, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
pand xmm4, xmm1
psubd xmm5, xmm4
psrld xmm6, 1
pxor xmm4, xmm4
pand xmm5, xmm2
pxor xmm5, xmm6
pand xmm6, xmm1
psubd xmm4, xmm6
psrld xmm5, 1
pxor xmm6, xmm6
pand xmm4, xmm2
pxor xmm4, xmm5
pand xmm5, xmm1
psubd xmm6, xmm5
psrld xmm4, 1
pxor xmm5, xmm5
pand xmm6, xmm2
pxor xmm6, xmm4
pand xmm4, xmm1
psubd xmm5, xmm4
psrld xmm6, 1
pand xmm5, xmm2
pxor xmm5, xmm6
movdqu xmmword [eax + 0x43fa00], xmm5
add eax, 0x10
jne 0x40bcf8
pop ebp
ret

Function at 0x40bde0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movdqa xmm0, xmmword [0x4353f0]
movdqa xmm2, xmmword [0x435400]
movdqa xmm3, xmmword [0x435410]
movdqa xmm4, xmmword [0x435420]
mov eax, 0xfffff800
pxor xmm1, xmm1
movdqa xmm5, xmm0
pxor xmm7, xmm7
paddd xmm0, xmm4
punpckldq xmm5, xmm1
movdqa xmm6, xmm5
pand xmm5, xmm2
psubq xmm7, xmm5
psrlq xmm6, 1
pxor xmm5, xmm5
pand xmm7, xmm3
pxor xmm7, xmm6
pand xmm6, xmm2
psubq xmm5, xmm6
psrlq xmm7, 1
pxor xmm6, xmm6
pand xmm5, xmm3
pxor xmm5, xmm7
pand xmm7, xmm2
psubq xmm6, xmm7
psrlq xmm5, 1
pxor xmm7, xmm7
pand xmm6, xmm3
pxor xmm6, xmm5
pand xmm5, xmm2
psubq xmm7, xmm5
psrlq xmm6, 1
pxor xmm5, xmm5
pand xmm7, xmm3
pxor xmm7, xmm6
pand xmm6, xmm2
psubq xmm5, xmm6
psrlq xmm7, 1
pxor xmm6, xmm6
pand xmm5, xmm3
pxor xmm5, xmm7
pand xmm7, xmm2
psubq xmm6, xmm7
psrlq xmm5, 1
pxor xmm7, xmm7
pand xmm6, xmm3
pxor xmm6, xmm5
pand xmm5, xmm2
psubq xmm7, xmm5
psrlq xmm6, 1
pxor xmm5, xmm5
pand xmm7, xmm3
pxor xmm7, xmm6
pand xmm6, xmm2
psubq xmm5, xmm6
psrlq xmm7, 1
pand xmm5, xmm3
pxor xmm5, xmm7
movdqu xmmword [eax + 0x440200], xmm5
add eax, 0x10
jne 0x40be0c
pop ebp
ret
Function at 0x40c560
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
cmp dword [esi], 4
mov eax, dword [ecx]
jne 0x40c6e4
mov ebx, dword [ebp + 0xc]
sub ebx, eax
cmp ebx, 5
jb 0x40c6e4
add edx, eax
mov eax, dword [esi + 0x10]
add ebx, 0xfffffffc
xor edi, edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
mov cl, byte [edx + edi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x40c5ba
mov ecx, edi
sub ecx, eax
cmp ecx, 3
jbe 0x40c5c1
xor ecx, ecx
jmp 0x40c5f4
mov ecx, edi
jmp 0x40c6ba
mov eax, dword [ebp - 0x10]
dec cl
shl eax, cl
mov ecx, 0
and eax, 7
je 0x40c5f4
mov ecx, 0xe8
bt ecx, eax
jb 0x40c608
movzx ecx, byte [eax + 0x435430]
mov ebx, edi
sub ebx, ecx
mov cl, byte [ebx + edx + 4]
inc cl
cmp cl, 1
jbe 0x40c608
mov ecx, eax
movzx ebx, byte [edx + edi + 4]
mov dword [ebp - 0x10], ecx
mov ecx, ebx
inc cl
cmp cl, 1
jbe 0x40c618
mov eax, dword [ebp - 0x10]
lea eax, [eax + eax + 1]
mov ecx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
jmp 0x40c6b7
movzx eax, byte [edx + edi + 2]
movzx ecx, byte [edx + edi + 1]
shl ebx, 0x18
movzx edx, byte [edx + edi + 3]
shl eax, 8
or ebx, ecx
shl edx, 0x10
or ebx, eax
mov eax, dword [esi + 0xc]
mov esi, 0xfffffffb
or ebx, edx
add eax, edi
sub esi, eax
mov eax, dword [ebp - 0x10]
add ebx, esi
test eax, eax
je 0x40c689
movzx edx, byte [eax + 0x435430]
mov ecx, 0x18
mov eax, ebx
shl edx, 3
sub ecx, edx
shr eax, cl
inc al
cmp al, 1
ja 0x40c689
neg dl
mov dword [ebp - 0x20], esi
xor esi, esi
mov eax, edx
mov edx, ecx
dec esi
mov ecx, eax
shl esi, cl
not esi
xor ebx, esi
mov ecx, edx
add ebx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
inc al
cmp al, 2
jb 0x40c678
mov eax, ebx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
and eax, 0x1000000
mov ecx, eax
neg ecx
or ecx, eax
mov byte [edx + edi + 1], bl
mov byte [edx + edi + 2], bh
shr ebx, 0x10
mov eax, edi
shr ecx, 0x18
mov byte [edx + edi + 3], bl
mov byte [edx + edi + 4], cl
lea ecx, [edi + 4]
mov ebx, dword [ebp - 0x14]
mov edi, ecx
inc edi
cmp edi, ebx
jb 0x40c5a2
mov edx, edi
sub edx, eax
mov eax, dword [ebp - 0x10]
mov ecx, edx
dec cl
mov ebx, eax
xor eax, eax
shl ebx, cl
mov ecx, dword [ebp + 8]
cmp edx, 3
cmovbe eax, ebx
mov dword [esi + 0x10], eax
mov eax, dword [ecx]
add eax, edi
mov dword [ecx], eax
add dword [esi + 0xc], edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret