joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9e6260
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x9e6293
push 0x2e
push edi
call fcn.009eb860
add esp, 8
test eax, eax
je 0x9e6291
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x9e65b0
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, 0x24
mov eax, dword [0xa420c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000040
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9e6642
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.009e66a0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.009e89d0
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x9e6654
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00994788
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00994788
mov esp, ebp
pop ebp
ret
Function at 0x9e7b70
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0xa42178]
mov esi, eax
add esp, 4
test esi, esi
jne 0x9e7b9d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esi + 0xc]
mov dword [esi], ebx
mov dword [esi + 4], ecx
mov eax, dword [ebx + 0xc]
add eax, ecx
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push edi
lea edi, [ebx + 4]
cmp eax, dword [ebx + 0x10]
jbe 0x9e7be8
mov eax, dword [ebx]
push ecx
call eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push dword [ebp + 0xc]
push dword [esi + 4]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebx + 0xc]
push dword [esi + 4]
mov dword [ebp - 8], eax
push eax
mov eax, dword [ebx + 8]
call eax
mov eax, dword [ebx + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x9e7bee
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [esi + 4]
mov eax, dword [ebx]
call eax
push dword [esi + 8]
mov eax, dword [ebx]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x9e7c51
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
nop
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x9e7c10
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
lea edi, [eax + 4]
jmp 0x9e7c54
mov eax, dword [ebp + 8]
cmp ebx, dword [eax + 0x10]
jae 0x9e7c88
nop dword [eax]
mov eax, dword [edi]
push 1
push 0xa31ff9
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0xa31ffa
push dword [esi + 8]
call eax
mov eax, dword [ebp + 8]
inc ebx
add esp, 0x18
cmp ebx, dword [eax + 0x10]
jb 0x9e7c60
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x9e7cf0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000040
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x9e7d15
mov eax, 0x1b
pop esi
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9e7d45
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
mov eax, 2
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x9e89d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9e8a1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9e89e2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9e8a80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9e8ad2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9e8ad8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa00fc5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a00c85

Function at 0xa05dbf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a05c3e

Function at 0xa0b370
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa0b39d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa0b39d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403f2d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 0x11c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
sbb eax, eax
neg eax
leave
ret

Function at 0x404003
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
push ebx
call fcn.00403f2d
test al, al
je 0x40401e
push 2
pop eax
jmp 0x404155
push esi
push edi
mov edi, 0x400
push edi
lea eax, [ebp - 0x82c]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, esi
je 0x404130
cmp eax, edi
je 0x404130
push esi
push esi
push 3
push esi
push 7
push 0x80000000
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x404071
push 0x401160
jmp 0x404135
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
cmp ebx, esi
jne 0x40408e
push 0x401174
jmp 0x404135
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
jne 0x4040aa
push 0x401188
jmp 0x404135
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
je 0x4040c3
push 0x40119c
jmp 0x404135
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00403fb6
lea ecx, [eax + 0xc]
cmp dword [ebp - 0x20], ecx
jb 0x4040fc
lea esi, [eax + edi]
push 8
lea eax, [ebp - 0xc]
push esi
push eax
call dword [0x406010]
push 4
add esi, 8
lea eax, [ebp - 4]
push esi
push eax
call dword [0x406010]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0xc], 0x696d7678
jne 0x40412b
cmp dword [ebp - 8], 0x74636a6e
jne 0x40412b
xor eax, eax
inc eax
test byte [ebp - 4], al
jne 0x404153
push 2
pop eax
jmp 0x404153
push 0x40114c
or eax, 0xffffffff
mov esi, 0x406030
call fcn.00405047
push 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00404feb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404233
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call edi
cmp word [eax], 0x22
jne 0x404282
add eax, 2
push 0x22
push eax
call dword [0x40601c]
pop ecx
pop ecx
test eax, eax
je 0x404261
cmp word [eax + 2], 0
je 0x404261
add eax, 4
jmp 0x40429b
push 0x4010e8
or eax, 0xffffffff
mov esi, 0x406030
call fcn.00405047
call edi
push eax
or eax, 0xffffffff
call fcn.00405047
xor eax, eax
jmp 0x40429b
push 0x20
push eax
call dword [0x40601c]
pop ecx
pop ecx
test eax, eax
jne 0x404298
push 0x4010fc
jmp 0x404266
add eax, 2
pop edi
pop esi
ret
Function at 0x40433f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
xor edx, edx
add eax, ecx
mov dword [ebp - 8], edx
cmp dword [eax + 0x7c], edx
je 0x4043b7
push ebx
push esi
mov esi, dword [eax + 0x78]
add esi, ecx
mov ebx, dword [esi + 0x1c]
push edi
mov edi, dword [esi + 0x20]
add ebx, ecx
add edi, ecx
mov dword [ebp - 4], edx
cmp dword [esi + 0x14], edx
jbe 0x4043b4
jmp 0x404375
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax*4]
add eax, ecx
push 0x401470
push eax
call dword [0x406018]
pop ecx
pop ecx
test eax, eax
je 0x40439c
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x14]
jb 0x404372
jmp 0x4043b4
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 4]
lea ecx, [eax + ecx*2]
mov eax, dword [ebp + 8]
movzx ecx, word [ecx + eax]
mov ebx, dword [ebx + ecx*4]
add ebx, eax
mov dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
call fcn.00404312
sub eax, dword [0x40602c]
mov ecx, 0x7fff
cmp ecx, eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
leave
ret
Function at 0x402050
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x6101c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x3ff
lea eax, [ebp - 0x407]
mov byte [ebp - 0x408], 0
push 0
push eax
mov esi, edx
mov ebx, ecx
call fcn.00582230
add esp, 8
mov dword [ebp - 0x410], 0
mov edx, esi
mov dword [ebp - 0x40c], 0
lea ecx, [ebp - 0x410]
call fcn.00401f80
add esp, 4
test eax, eax
jne 0x4020fe
push dword [ebp - 0x410]
lea eax, [ebp - 0x408]
push ebx
push str._s___s
push eax
call fcn.0057e454
add esp, 0x10
lea eax, [ebp - 0x408]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4020e0
xor esi, esi
jmp 0x4020e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x410]
push 0x6114b0
call dword [0x6114b4]
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e445
mov esp, ebp
pop ebp
ret
Function at 0x402c80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor eax, eax
push ebx
push esi
push edi
jmp 0x402c90
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x61c650], ecx
inc eax
cmp eax, 0x100
jb 0x402c90
cmp eax, 0x800
jae 0x402d63
lea esp, [esp]
mov edx, dword [eax*4 + 0x61c250]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x61c650]
mov dword [eax*4 + 0x61c650], edx
inc eax
cmp eax, 0x800
jb 0x402d40
mov dword [0x62f9d4], 0x402e90
mov dword [ebp - 4], 0x40000
pushfd
pop eax
mov edx, eax
xor eax, dword [ebp - 4]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402e80
mov dword [ebp - 8], 0x200000
pushfd
pop eax
mov edx, eax
xor eax, dword [ebp - 8]
push eax
popfd
pushfd
pop eax
xor eax, edx
push edx
popfd
and dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402e80
lea eax, [ebp - 0x20]
xor ecx, ecx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
call fcn.00406c10
add esp, 0xc
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x18]
mov ecx, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00406c10
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov esi, edi
xor ecx, ecx
shr esi, 8
mov eax, 0x6114c8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [ebp - 0x24]
cmp dword [eax - 8], ebx
jne 0x402e1f
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x1c]
jne 0x402e1f
cmp dword [eax], ebx
je 0x402e2e
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x402e08
or ecx, 0xffffffff
sub ecx, 0
je 0x402e67
dec ecx
je 0x402e56
dec ecx
jne 0x402e80
cmp esi, 6
jb 0x402e80
jne 0x402e76
cmp edi, 0xf
jb 0x402e80
mov dword [0x62f9d4], 0x402f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x402e80
jne 0x402e76
cmp edi, 6
jb 0x402e80
cmp edi, 0xa
jmp 0x402e74
cmp esi, 6
jb 0x402e80
jne 0x402e76
cmp edi, 0x100c
je 0x402e80
mov dword [0x62f9d4], 0x402f30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403a60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x403abf
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x403ac8
test ecx, ecx
je 0x403abf
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x403a80
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x403b3f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x403b48
test ecx, ecx
je 0x403b3f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x403b00
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x406ab0
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x406ad9
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x406ad6
inc esi
cmp esi, edx
jb 0x406ac7
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x406be1
cmp ecx, 3
jbe 0x406af2
xor eax, eax
jmp 0x406b30
dec ecx
shl eax, cl
and eax, 7
je 0x406b30
movzx ecx, byte [eax + 0x5e3c88]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x5e3c80], 0
mov cl, byte [edx + 4]
je 0x406b1a
test cl, cl
je 0x406b1a
cmp cl, 0xff
jne 0x406b2d
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x406ac0
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x406b52
cmp cl, 0xff
je 0x406b52
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x406ac0
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x406bae
movzx edx, byte [eax + 0x5e3c88]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x406b9a
cmp dl, 0xff
jne 0x406bae
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x406b70
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x406ac0
pop esi
pop ebx
cmp ecx, 3
jbe 0x406bf6
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40d120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004558b3

Function at 0x40e3f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40e405
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40e444
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40e440
lea ebx, [ebx]
cmp esi, edx
jae 0x40e444
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40e430
cmp esi, edx
jb 0x40e449
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x40ec50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
lea edi, [esi + 0xd]
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, dword [esi]
sub eax, 5
mov dword [esi + 0xe], eax
lea eax, [ebp + 0xc]
push eax
push 0x40
push 5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 5
lea eax, [esi + 8]
push eax
push dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp + 0x10]
push eax
push 5
push edi
mov edi, dword [ebp - 4]
push dword [edi]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [ebp + 0xc]
push 5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ece0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push 0x40
push 5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 5
lea eax, [edi + 0xd]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push dword [ebp - 4]
push 5
push dword [edi]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40f0e0
Capabilities:
Connect socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x6101c0]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push ebx
push esi
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0xffffffff
push eax
mov esi, ecx
mov dword [ebp - 0x124], 4
push 0x8004667e
push esi
movdqu xmmword [ebp - 0x14], xmm0
mov dword [ebp - 0x11c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40f1b7
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 3
push eax
push 0
lea eax, [ebp - 0x118]
mov dword [ebp - 0x128], 0
push eax
push 0
lea eax, [esi + 1]
mov dword [ebp - 0x114], esi
push eax
mov dword [ebp - 0x118], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40f1b3
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x120]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 0x120], 0
sete bl
jmp 0x40f1b9
xor bl, bl
jmp 0x40f1b9
mov bl, 1
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x11c], 0
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.0057e445
mov esp, ebp
pop ebp
ret