joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403560
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
cmp dword [esi + 0x100ac], ebx
je 0x403620
cmp dword [esi + 0x7c], ebx
jbe 0x403620
mov eax, 0xffffff5c
sub eax, esi
lea edi, [esi + 0xa4]
mov dword [ebp - 4], eax
jmp 0x4035a0
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebx, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
mov ecx, dword [ebp - 4]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x7c]
jb 0x4035a0
xor ebx, ebx
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x1c]
push edi
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x403644
or eax, 0xffffffff
jmp 0x403647
mov eax, dword [ebp - 8]
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
pop edi
adc dword [esi + 0x100c4], ebx
add dword [esi + 0x100c8], ecx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x7c], ebx
adc dword [esi + 0x100cc], ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4053c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x4f9340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
test ebx, ebx
jle 0x405550
mov edx, 1
mov dword [ebp - 0x84], 0xedb88320
mov ecx, edx
mov dword [ebp + ecx*4 - 0x84], edx
inc ecx
add edx, edx
cmp ecx, 0x20
jl 0x4053f2
push esi
push edi
xor edi, edi
jmp 0x405410
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x405431
test cl, 1
je 0x40542a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x405423
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x405410
xor edi, edi
jmp 0x405450
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x405471
test cl, 1
je 0x40546a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x405463
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x405450
xor edi, edi
jmp 0x405490
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x4054b1
test cl, 1
je 0x4054aa
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x4054a3
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x405490
test bl, 1
je 0x4054e3
xor edx, edx
lea ecx, [ebp - 0x104]
test eax, eax
je 0x4054e1
test al, 1
je 0x4054da
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x4054d4
mov eax, edx
sar ebx, 1
je 0x40554b
xor edi, edi
lea esp, [esp]
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x405511
test cl, 1
je 0x40550a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x405503
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x4054f0
test bl, 1
je 0x405543
xor edx, edx
lea ecx, [ebp - 0x84]
test eax, eax
je 0x405541
test al, 1
je 0x40553a
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x405534
mov eax, edx
sar ebx, 1
jne 0x405483
xor eax, dword [ebp + 0xc]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00473108
mov esp, ebp
pop ebp
ret
Function at 0x406910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x406923
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x40699d
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004731a0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x406971
sub eax, edi
jmp 0x406973
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x406962
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x406990
sub eax, edi
jmp 0x406992
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x406981
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x406ac9
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x4069c3
mov ebx, ecx
test ebx, ebx
je 0x406a16
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4069e5
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.004094c0
jmp 0x4069fe
cmp eax, 2
jne 0x406a04
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x4069f7
xor eax, eax
jmp 0x406a01
mov edx, ebx
call fcn.00404d90
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.004731a0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov ebx, dword [esi + 0x74]
cmp ebx, 3
jb 0x406a3e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x406a52
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x406920
mov eax, dword [esi + 0x16c0]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jae 0x406ac9
mov edi, dword [esi + 0x6c]
add edi, ebx
cmp eax, edi
jae 0x406a98
sub ecx, edi
mov ebx, ecx
cmp ebx, 0x102
jbe 0x406a79
mov ebx, 0x102
mov eax, dword [esi + 0x38]
push ebx
add eax, edi
push 0
push eax
call fcn.00473120
add esp, 0xc
add ebx, edi
pop edi
mov dword [esi + 0x16c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [edi + 0x102]
cmp eax, edx
jae 0x406ac9
sub edi, eax
add edi, 0x102
sub ecx, eax
cmp edi, ecx
jbe 0x406ab2
mov edi, ecx
mov ecx, dword [esi + 0x38]
push edi
add ecx, eax
push 0
push ecx
call fcn.00473120
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a2d7
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CMD5Checksum.0
call fcn.00473120
and dword [esi + 0x48], 0
and dword [esi + 0x44], 0
add esp, 0xc
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x40ada2
Capabilities:
Hash data with md5

Disassembly:
push edi
xor eax, eax
lea edi, [ecx + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
pop edi
ret
Function at 0x40bc64
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4f9340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x10
pop eax
cmp dword [ebp + 0x14], eax
je 0x40bc94
cmp dword [ebp + 0x14], 0xc
je 0x40bc94
cmp dword [ebp + 0x14], 8
je 0x40bc94
mov dword [ebp + 0x14], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
xor edi, edi
add edx, 0xfffffff8
mov dword [ebx], eax
mov dword [ebp - 0x108], edi
cmp edx, edi
jl 0x40bd15
add edx, 8
shr edx, 3
mov eax, edx
shl eax, 3
mov dword [ebp - 0x108], eax
mov eax, dword [ebp + 0x10]
movzx esi, byte [eax + 1]
movzx ecx, byte [eax]
shl esi, 8
or ecx, esi
movzx esi, byte [eax + 2]
shl esi, 0x10
or ecx, esi
movzx esi, byte [eax + 3]
shl esi, 0x18
or ecx, esi
movzx esi, byte [eax + 5]
mov dword [ebp + edi*4 - 0x104], ecx
movzx ecx, byte [eax + 4]
shl esi, 8
or ecx, esi
movzx esi, byte [eax + 6]
shl esi, 0x10
or ecx, esi
movzx esi, byte [eax + 7]
shl esi, 0x18
or ecx, esi
add eax, 8
mov dword [ebp + edi*4 - 0x100], ecx
add edi, 2
dec edx
jne 0x40bcbf
jmp 0x40bd18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, ecx
sub edx, dword [ebp - 0x108]
je 0x40bd89
and ecx, 7
add eax, ecx
xor esi, esi
xor edx, edx
dec ecx
cmp ecx, 7
ja case.default.0x40bd34
jmp dword [ecx*4 + 0x40be50]
dec eax
movzx esi, byte [eax]
shl esi, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or esi, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or esi, ecx
dec eax
movzx ecx, byte [eax]
or esi, ecx
dec eax
movzx edx, byte [eax]
shl edx, 0x18
dec eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
dec eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
movzx eax, byte [eax - 1]
or edx, eax
mov eax, edi
mov dword [ebp + eax*4 - 0x104], edx
mov dword [ebp + eax*4 - 0x100], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
add eax, 3
cdq
and edx, 3
add eax, edx
xor edx, edx
lea ecx, [ecx + ecx + 2]
sar eax, 2
inc edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], ecx
mov dword [ebx + 4], 0xb7e15163
cmp ecx, edx
jle 0x40bdcb
mov esi, dword [ebx + edx*4]
sub esi, 0x61c88647
mov dword [ebx + edx*4 + 4], esi
inc edx
cmp edx, ecx
jl 0x40bdb9
cmp ecx, eax
jg 0x40bdd1
mov ecx, eax
imul ecx, ecx, 3
xor esi, esi
xor eax, eax
xor edx, edx
mov dword [ebp - 0x108], esi
test ecx, ecx
jle 0x40be40
mov dword [ebp - 0x10c], ecx
mov edi, dword [ebp - 0x108]
lea ecx, [edx + esi]
add ecx, dword [ebx + eax*4 + 4]
lea edi, [ebp + edi*4 - 0x104]
rol ecx, 3
mov esi, ecx
mov dword [ebx + eax*4 + 4], ecx
lea ecx, [edx + esi]
add edx, esi
add edx, dword [edi]
inc eax
rol edx, cl
mov dword [edi], edx
cmp eax, dword [ebp - 0x110]
jl 0x40be1d
xor eax, eax
inc dword [ebp - 0x108]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [ebp - 0x114]
jl 0x40be38
and dword [ebp - 0x108], 0
dec dword [ebp - 0x10c]
jne 0x40bdea
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473108
leave
ret
Function at 0x40cc0e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 4], esi
cmp dword [ebp + 8], ebx
jne 0x40cc32
push ebx
push ebx
push ebx
push 2
call fcn.0041101d
xor al, al
jmp 0x40cdc4
push edi
call fcn.0040cad0
or dword [esi + 8], 0xffffffff
or dword [esi + 4], 0xffffffff
push 2
push ebx
push dword [ebp + 8]
call fcn.00474d34
push dword [ebp + 8]
call fcn.00474c45
push ebx
push ebx
push dword [ebp + 8]
mov edi, eax
call fcn.00474d34
add esp, 0x1c
cmp edi, ebx
jg 0x40cc6f
push ebx
push ebx
push ebx
push 0xc
mov ecx, esi
jmp 0x40cc9f
lea eax, [edi + 1]
push eax
call fcn.00474aa6
push dword [ebp + 8]
mov esi, eax
push 1
push edi
push esi
mov byte [esi], bl
call fcn.004741a6
add esp, 0x14
cmp eax, 1
je 0x40ccab
push esi
call fcn.00474a9b
pop ecx
mov ecx, dword [ebp - 4]
push ebx
push ebx
push ebx
push 2
call fcn.0041101d
xor al, al
jmp 0x40cdc3
cmp dword [ebp + 0xc], 3
je 0x40ccc7
cmp byte [esi], 0xff
jne 0x40ccbc
cmp byte [esi + 1], 0xfe
je 0x40ccc7
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], bl
jmp 0x40cd7c
mov eax, dword [ebp - 4]
mov byte [eax + 0x75], 1
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
mov dword [ebp + 0xc], ebx
neg ecx
or ecx, eax
push ecx
call fcn.00474aa6
mov ecx, dword [ebp - 8]
lea ecx, [ecx + ecx + 2]
push ecx
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.00473120
add esp, 0x10
cmp byte [esi], 0xff
jne 0x40cd1a
cmp byte [esi + 1], 0xfe
jne 0x40cd1a
add edi, 0xfffffffe
push edi
lea eax, [esi + 2]
push eax
jmp 0x40cd1c
push edi
push esi
push dword [ebp + 8]
call fcn.004731a0
add esp, 0xc
push esi
call fcn.00474a9b
pop ecx
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00474aa6
mov esi, eax
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.00473120
add esp, 0x10
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp + 8]
call fcn.00474a9b
pop ecx
mov byte [esi + edi], bl
mov edx, esi
mov eax, esi
cmp byte [esi], bl
je 0x40cda2
mov cl, byte [edx]
cmp cl, 0xd
jne 0x40cd9a
mov byte [eax], 0xa
inc eax
inc edx
cmp byte [edx], 0xa
jne 0x40cd9e
jmp 0x40cd9d
mov byte [eax], cl
inc eax
inc edx
cmp byte [edx], bl
jne 0x40cd87
push dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push ebx
mov byte [eax], bl
mov eax, dword [ecx]
push esi
call dword [eax + 8]
push esi
call fcn.00474a9b
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp byte [ecx + 0x44], bl
sete al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40cdca
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x74], bl
je 0x40ce0b
cmp byte [esi + 0x75], bl
jne 0x40ce0b
push dword [ebp + 8]
push 0xef
call fcn.00474fd1
push dword [ebp + 8]
push 0xbb
call fcn.00474fd1
push dword [ebp + 8]
push 0xbf
call fcn.00474fd1
add esp, 0x18
mov eax, dword [esi]
push ebx
push dword [ebp + 8]
mov ecx, esi
call dword [eax + 4]
cmp byte [esi + 0x75], bl
je 0x40cf25
push 2
push ebx
push dword [ebp + 8]
call fcn.00474d34
push dword [ebp + 8]
call fcn.00474c45
push ebx
push ebx
push dword [ebp + 8]
mov edi, eax
call fcn.00474d34
add esp, 0x1c
cmp edi, ebx
jg 0x40ce4c
xor al, al
jmp 0x40cf33
lea eax, [edi + 1]
push eax
call fcn.00474aa6
push dword [ebp + 8]
mov esi, eax
push 1
push edi
push esi
mov dword [ebp - 0xc], esi
mov byte [esi], bl
call fcn.004741a6
add esp, 0x14
mov byte [esi + edi], bl
cmp eax, 1
je 0x40ce80
push esi
call fcn.00474a9b
xor al, al
jmp 0x40cf32
push ebx
push ebx
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
mov edi, 0xfde9
push edi
call esi
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00474aa6
mov ecx, dword [ebp - 8]
add ecx, ecx
push ecx
push ebx
push eax
mov dword [ebp - 4], eax
call fcn.00473120
add esp, 0x10
push dword [ebp - 8]
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp - 0xc]
push ebx
push edi
call esi
push dword [ebp - 0xc]
call fcn.00474a9b
mov esi, dword [ebp + 8]
push ebx
push ebx
push esi
call fcn.00474d34
push esi
push 0xff
call fcn.00474fd1
push esi
push 0xfe
call fcn.00474fd1
mov eax, dword [ebp - 4]
add esp, 0x20
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40ceff
sub eax, ecx
push esi
sar eax, 1
push eax
push 2
push dword [ebp - 4]
call fcn.00474f57
push dword [ebp - 4]
call fcn.00474a9b
add esp, 0x14
push dword [ebp + 8]
call fcn.00474dd8
neg eax
sbb eax, eax
inc eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x413703
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0xc
mov eax, 0x4a6458
call fcn.00473a66
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 1
push esi
push esi
push esi
push esi
push esi
xor ebx, ebx
xor edi, edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
cmp eax, esi
je 0x413788
push esi
push 0x50
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
cmp eax, esi
je 0x413788
push esi
push esi
push esi
push esi
push 0x4bca70
push 0x4bca74
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
cmp ebx, esi
je 0x413788
push 0x64
pop eax
push eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
cmp edi, esi
je 0x413788
push esi
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov edi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
cmp edi, esi
je 0x4137d8
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x16
push ebx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4137d8
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00474aa6
pop ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
push esi
push 0x16
push ebx
mov dword [ebp - 0x10], eax
call edi
mov ecx, dword [ebp + 8]
push 0x4f930c
call fcn.0040a6cc
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x10], esi
je 0x413820
push str.Server:
push dword [ebp - 0x10]
call fcn.00476543
mov edi, eax
push edi
call fcn.00413682
mov ecx, dword [ebp + 8]
add esp, 0xc
push eax
push edi
call fcn.0040a8e3
push dword [ebp - 0x10]
call fcn.00474a9b
pop ecx
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00409a10
mov eax, dword [ebp + 8]
call fcn.00473b3e
ret
Function at 0x415ff5
Capabilities:
Contain obfuscated stackstrings
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4f9340]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov byte [ebp - 0x2c], 0
xor eax, eax
lea edi, [ebp - 0x2b]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4bcda8
push ecx
mov dword [ebp - 0x1c], 0x474e5089
mov dword [ebp - 0x18], 0xa1a0a0d
mov dword [ebp - 0xc], 0x38464947
mov word [ebp - 8], 0x6139
mov dword [ebp - 0x14], 0x38464947
mov word [ebp - 0x10], 0x6137
mov word [ebp - 0x34], 0xd8ff
mov word [ebp - 0x30], 0x4d42
stosb byte es:[edi], al
call fcn.0047679b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x416068
or eax, 0xffffffff
jmp 0x416107
push esi
push 1
lea eax, [ebp - 0x2c]
push 0x10
push eax
call fcn.004741a6
push esi
call fcn.00473ecb
add esp, 0x14
push 8
pop ecx
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x2c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
push 0xffffffffffffffff
pop edx
je 0x416095
sbb eax, eax
sbb eax, edx
test eax, eax
je 0x416107
push 6
pop ecx
lea edi, [ebp - 0xc]
lea esi, [ebp - 0x2c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4160ac
sbb eax, eax
sbb eax, edx
test eax, eax
je 0x416104
push 6
pop ecx
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x2c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4160c3
sbb eax, eax
sbb eax, edx
test eax, eax
je 0x416104
push 2
pop ecx
lea edi, [ebp - 0x34]
lea esi, [ebp - 0x2c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4160da
sbb eax, eax
sbb eax, edx
push 2
test eax, eax
jne 0x4160e3
pop eax
jmp 0x416107
pop ecx
lea edi, [ebp - 0x30]
lea esi, [ebp - 0x2c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4160f4
sbb eax, eax
sbb eax, edx
xor ecx, ecx
test eax, eax
sete cl
lea eax, [ecx*4 - 1]
jmp 0x416107
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00473108
leave
ret 4
Function at 0x416ab6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x416b3a
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x416af7
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
jne 0x416afb
xor eax, eax
jmp 0x416b39
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x416b0c
push esi
jmp 0x416b30
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x416b2d
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x416b3f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0xc
push edi
push ebx
push eax
call fcn.004731a0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
and dword [ebp + 0x10], 0
lea eax, [ebp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x416b7c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x416b38
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
call fcn.004169ae
mov esi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416b6f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x416b6f

Function at 0x419555
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41957b
xor ecx, ecx
cmp cx, word [eax]
je 0x41957b
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41957b
test al, 0x10
jne 0x41957b
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41957f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4195a5
xor ecx, ecx
cmp cx, word [eax]
je 0x4195a5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4195a5
test al, 0x10
je 0x4195a5
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41cbf6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00473120
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], 0x4c1fb0
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
leave
ret